libutp icon indicating copy to clipboard operation
libutp copied to clipboard

Try fix for #92

Open nojb opened this issue 9 years ago • 1 comments

We need to process the ST_FIN packet even if the connection has not been fully established yet.

nojb avatar May 09 '16 15:05 nojb

I believe the correct fix would be to consider ST_FIN as connection completion (as well as ST_DATA):

https://github.com/bittorrent/libutp/blob/master/utp_internal.cpp#L2160

if ((pk_flags == ST_DATA || pk_flags == ST_FIN) && conn->state == CS_SYN_RECV) {
	conn->state = CS_CONNECTED;
}

ghazel avatar Feb 28 '18 23:02 ghazel