[tuxdroid-user] Small issue with tcp/ip when disconnecting the socket
Status: Beta
Brought to you by:
ks156
From: David B. <da...@ja...> - 2007-06-21 09:32:45
|
Hi neimad, You removed a usleep in send_daemon_disconnected() and asked me why it was there. tcp_server_send_raw(data); usleep(?); close(tcp_server_handle); I had no idea but I now found that sometimes the client doesn't get the message so the daemon quits but the client is still hooked on the socket. Does it also relates to the fact that sockets are now non-blocking? Any idea on what to do here? Thanks, David |