Menu

#544 Race condition with TCP connections

open
nobody
core (125)
5
2008-12-17
2008-12-17
Gawith
No

Hi,

it looks like there's a race condition with tcpconn_timeout and tcpconn_get.

tcpconn_get searches and finds a connection which times out at this moment. It returns this connection to tcp_send.
In the meantime another TCP child calls tcp_conn_timeout and removes this connection.

The tcp_send fails with
ERROR:core:tsend_stream: tsend_stream: send timeout (10000)
ERROR:core:tcp_send: failed to send
ERROR:tm:msg_send: tcp_send failed

Discussion


Log in to post a comment.