[En-Nut-Discussion] killing threads waiting for a connection in NutTcpAccept

José Vallet jose.vallet at hut.fi
Thu Apr 9 08:54:27 CEST 2009


Hello Harald.

Harald Kipp wrote:
> José Vallet wrote:
> 
>> I guess that for now we will have to live with a dirty solution to 
>> unblock NutTcpAccept.
> 
> It may also work to close the stream and/or socket handle from another
> thread, if these handles are globally available.

Actually closing the socket is what we tried first, but unfortunately it 
didn't work. When the socket is closed NutTcpAccept continues blocking 
the thread.

The stream is created right after NutTcpAccept, so we cannot close it 
before.


Thanks.
José



More information about the En-Nut-Discussion mailing list