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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tux-droid-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-user

Reply via email to