The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Mark Volkmann <r.mark.volkm...@gmail.com>
Date: Fri, 7 Sep 2012 09:21:30 -0500
Local: Fri, Sep 7 2012 10:21 am
Subject: Re: [nodejs] net.createServer
The client queues write requests until the connection handshake is
> done. Said handshake is complete when the server accepts the
If that is true then why is the first message from the client lost if I do
> connection, which node does right before it calls your connListener > function. this? Note that on my machine (OSX) the message is lost if the timeout is 2 ms or more, but not if it is less than 2. Maybe the client queues write requests until the connListener function completes. server.js
var net = require('net');
}
function connListener(socket) {
setTimeout(function () { socket.on('data', dataListener); }, 2); }
var server = net.createServer(connListener);
server.listen(8019); client.js
var net = require('net');
-- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||