picoev: enable running veb services on Termux

This commit is contained in:
Delyan Angelov 2025-01-24 11:34:03 +02:00
parent 772d21034c
commit a44ff7813a
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 145 additions and 2 deletions

View file

@ -104,7 +104,7 @@ fn listen(config Config) !int {
// can be accepted
net.socket_error(C.setsockopt(fd, C.IPPROTO_IPV6, C.IPV6_V6ONLY, &flag_zero, sizeof(int)))!
}
$if linux {
$if linux || termux {
// epoll socket options
net.socket_error(C.setsockopt(fd, C.SOL_SOCKET, C.SO_REUSEPORT, &flag, sizeof(int)))!
net.socket_error(C.setsockopt(fd, C.IPPROTO_TCP, C.TCP_QUICKACK, &flag, sizeof(int)))!