WebAssembly/wasi-libc

getsockopt, setsockopt doesn't implement SO_RCVTIMEO,SO_SNDTIMEO for wasi:socket handles

pavelsavara opened this issue · 2 comments

case SO_RCVTIMEO: // TODO wasi-sockets: emulate in wasi-libc itself
case SO_SNDTIMEO: // TODO wasi-sockets: emulate in wasi-libc itself
default:
errno = ENOPROTOOPT;
return -1;
}
break;

My suggestion is to keep track of the configured timeout values in wasi-libc and update the sendto & recvfrom implementations to take them into account where they're currently calling poll_method_pollable_block