On Sep 7, 10:21 am, Mark Volkmann <[email protected]> wrote: > On Fri, Sep 7, 2012 at 9:09 AM, Ben Noordhuis <[email protected]> wrote: > > The client queues write requests until the connection handshake is > > > done. Said handshake is complete when the server accepts the > > connection, which node does right before it calls your connListener > > function. > > If that is true then why is the first message from the client lost if I do > this?
Probably because the accept and incoming data happen within the same tick. This is why you should add a data handler right away, or at least pause() the socket right away. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
