in posix os_socket_bind
struct linger ling;
ling.l_onoff = 1;
ling.l_linger = 0;
ret = setsockopt(socket, SOL_SOCKET, SO_LINGER, &ling, sizeof(ling));
if (ret < 0) {
goto fail;
}
Linger is set to 0 immediately after any bind.
I couldn't find any references to it, in blames or in the github.
This means closing any connection fails with a reset ? why is that set ?
in posix
os_socket_bindLinger is set to 0 immediately after any bind.
I couldn't find any references to it, in blames or in the github.
This means closing any connection fails with a reset ? why is that set ?