Commit Graph

8 Commits (9cf2a02d8ba49244779257969d0307c96b2d777b)

Author SHA1 Message Date
Ryan Dahl e82893d3f2 Clean up IOWatcher 2010-01-27 16:07:15 -08:00
Ryan Dahl bf803f478b Reimplment Buffers 2010-01-27 15:40:09 -08:00
Ryan Dahl c106c3740b Use ObjectWrap again for IOWatchers.
I think the problem is in Buffers.
2010-01-26 18:35:01 -08:00
Ryan Dahl 741e3fa91b HTTP works somewhat on net2 now
However it's not working very well: Hitting a 'hello world' server with many
requests (ab -t 60 -c 10) will cause it to crash with the following error.

  Obtained 3 stack frames.

  ./node(_Z11print_tracev+0x1c) [0x80d1b3c]
  ./node(_ZN4node6Parser7ExecuteERKN2v89ArgumentsE+0x69) [0x80d3759]
  ./node [0x811f44b]
  TypeError: Already parsing a buffer
      at Socket.<anonymous> (/home/ryan/projects/node/lib/http2.js:393:20)
      at IOWatcher.callback (/home/ryan/projects/node/lib/net.js:81:12)
      at node.js:985:9
      at node.js:989:1
2010-01-25 17:55:08 -08:00
Ryan Dahl 2788064bc2 Make callback_symbols static so they don't conflict 2010-01-20 15:43:06 -08:00
Ryan Dahl 153b755936 Change IOWatcher constructor to have no arguments 2009-12-29 21:12:32 +01:00
Ryan Dahl 0ecd0fa598 IOWatcher callback isn't internal, fix bug in Accept 2009-12-29 21:12:30 +01:00
Ryan Dahl f219938b69 add io watcher 2009-12-29 21:12:29 +01:00