Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Igor Zinkovsky
f35a396c54
Revert "remove node_io_watcher"
This reverts commit cc2ac1ccc7
.
13 years ago
Igor Zinkovsky
cc2ac1ccc7
remove node_io_watcher
13 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
2320497992
Revert "Merge branch 'writev'"
This reverts commit cd9515efd9
, reversing
changes made to df46c8e698
.
Too slow. Needs more work.
14 years ago
Ryan Dahl
794e7be4f8
Revert "Actually don't need to limit sendmsg size on unix - seems okay."
This reverts commit 464ced4a86
.
14 years ago
Ryan Dahl
d42098651b
Revert "fd_to_send needs to be cleared if *any* data was sent"
This reverts commit a93634007a
.
14 years ago
Ryan Dahl
a93634007a
fd_to_send needs to be cleared if *any* data was sent
14 years ago
Ryan Dahl
464ced4a86
Actually don't need to limit sendmsg size on unix - seems okay.
14 years ago
Ryan Dahl
0b1214c16b
Fix a bug regarding queueSize, add asserts
14 years ago
Ryan Dahl
3884b4185a
Small clean ups
14 years ago
Ryan Dahl
d3fbe3e3d1
Emit drain and stop IOWatcher even on empty buffer
14 years ago
Ryan Dahl
fa556a1425
Add callback to socket.write(), fix test-sendfds
14 years ago
Ryan Dahl
a6d8425382
make sure unix sockets are tagged correctly
14 years ago
Ryan Dahl
10ff559ec3
Add IOWatcher.flush()
To be called if sockets get too much data. This is to force a flush before
the tick ends.
14 years ago
Ryan Dahl
7c3c5c6861
Maintain queueSize for each socket
14 years ago
Ryan Dahl
5ba0be6166
Don't send null data segments
14 years ago
Ryan Dahl
d74c506044
Support encoding
14 years ago
Ryan Dahl
913789da3e
IOWatcher::Dump(), writev
14 years ago
Ryan Dahl
a3750a9833
Remove unnecessary ref/unref in iowatcher cb
14 years ago
Ryan Dahl
9c2969253b
Make sure watcher.set() isn't being called when active
14 years ago
Ben Noordhuis
55c65cc2d5
Safe constructor for ObjectWrapped classes
New() methods should be invoked as constructors, not regular functions.
Corner cases like Script::New() may cause a SIGSEGV when the GC is run.
More details: http://groups.google.com/group/nodejs/browse_thread/thread/a7e5db68d4cd6356
14 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
e82893d3f2
Clean up IOWatcher
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
c106c3740b
Use ObjectWrap again for IOWatchers.
I think the problem is in Buffers.
15 years ago
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
15 years ago
Ryan Dahl
2788064bc2
Make callback_symbols static so they don't conflict
15 years ago
Ryan Dahl
153b755936
Change IOWatcher constructor to have no arguments
15 years ago
Ryan Dahl
0ecd0fa598
IOWatcher callback isn't internal, fix bug in Accept
15 years ago
Ryan Dahl
f219938b69
add io watcher
15 years ago