On Mon, Jun 29, 2009 at 01:57:58PM -0400, arthur wrote:
> Hi All,
> 
> My tcp socket server is using bufferevent_write. It sends NAK then EOT
> to client if detect any error, then close the TCP socket without any
> waiting/delay. However, tests show those sending are not over the wire.
> Without check lib code I guess the close() drops the sending data in
> libevent.
> 
> Anything I can do to let libevent force sending those? Currently my app
> set SO_LINGER on (5) and only set read cb of bufferevent (blindly call
> bufferevent_write to response).
> 
> Thank you. Arthur
> 
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkeymail.org/mailman/listinfo/libevent-users

You should monitor writing events and close the socket after all data
has been written.

-- 
Victor Goya
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to