[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Server closes connection to client just after accept()



On Thu, May 13, 2010 at 11:35 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:

> My first guess is that you're calling accept() wrong: you need to
> initialize addrlen to sizeof(client_addr) before you call it, if I'm
> reading the accept() documentation right.

Thanks a lot! That seemed to be the problem. Sorry for bothering with
something that's not related to libevent.

-- 
Anomit Ghosh
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.