What is `buffer`? What is `parsePacket`? --Josh
On Thu, May 24, 2012 at 5:38 PM, xzYue <xzyue2...@gmail.com> wrote: > No one meet this kind of problems? > xzYue > > On 5月24日, 下午8時03分, xzYue <xzyue2...@gmail.com> wrote: >> Any idea? >> >> On 5月24日, 上午11時17分, xzYue <xzyue2...@gmail.com> wrote: >> >> > Hi all, >> > I created a tcp server using nodejs codes below: >> >> > var net = require('net'); >> > var server = net.createServer(function(c) { //'connection' listener >> > console.log('server connected'); >> >> > c.on('data', function(data) { >> > console.log("raw data: "+data.toString()); >> > buffer += data.toString(); >> > buffer = parsePacket(buffer); >> > }); >> >> > c.on('end', function() { >> > console.log('server disconnected'); >> > }); >> >> > }); >> >> > After a period of time,it stops data receiving. >> > I catch some packets using Wireshark. >> > A lot of TCP ZeroWindow errors. >> > I find the connection from the tcp client created by Java or C++ >> > appears this issues, but the nodejs tcp client is fine. >> >> > Any replies are welcome. >> > xzYue > > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- Joshua Holbrook Engineer Nodejitsu Inc. j...@nodejitsu.com -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en