[CRIU] socket_listen failed

Kinsbursky Stanislav skinsbursky at openvz.org
Mon Feb 6 10:34:32 EST 2012


06.02.2012 19:18, Cyrill Gorcunov пишет:
> On Mon, Feb 06, 2012 at 06:56:42PM +0400, Kinsbursky Stanislav wrote:
>>> + exit 1
>>> [root at dhcp-10-30-20-19 crtools]# cat /root/crtools/test/zdtm/live/static/socket_listen.out
>>> ERR: socket_listen.c:133: bind() failed Address already in use (errno = 98)
>>> ERR: socket_listen.c:42: initializing server failed (errno = 98)
>> Shit happens...
>>
> Stas, is it expected, or something get broken recently?
>
> 	Cyrill

Expected. It was always broken.
"Let's say you open a TCP connection. After transmitting data, you close the 
socket. But in fact, it will be set in TIME_WAIT state (TIME_WAIT == "it's 
possible that some data have no been delivered yet, or something, so we wait as 
a cautionous TCP implementation :) ") for a while. You just can't open another 
connection to the same IP/port, except by using REUSEADDR."
I've added requested setsockopt(REUSEADDR), but it doesn't work.
This bug is not urgent, so I haven't investigate it.

-- 
Best regards,
Stanislav Kinsbursky




More information about the CRIU mailing list