Krishna Rajendran
0d5a1fed33
Use gai_strerror when tcp.Server fails to resolve its address or service.
15 years ago
Ryan Dahl
0e844d3bcb
tcp.Connection.prototype.write should return boolean
15 years ago
Ryan Dahl
62c4214711
Properly throw error on failed connection
15 years ago
Ryan Dahl
c094dda53c
Move errors for readPause and readResume
15 years ago
Ryan Dahl
a0c48eecab
Rename readPause and readResume to pause/resume
15 years ago
Ryan Dahl
ecd61742a1
Throw from connection.connect if resolving.
Bug reported by James Golick.
15 years ago
Ryan Dahl
23cf502db7
API: connection.send() renamed to connection.write()
15 years ago
Zoka
fbef11b679
Use InstanceTemplate() instead of PrototypeTemplate() for accessor methods
This fixes crash that used to happen when Eclipse debugging session hits the
breakpoint that is set either in timer or connection callback.
15 years ago
Ryan Dahl
bc17d94a0a
API: tcp events 'receive' to 'data', 'eof' to 'end'
No deprecation messages. Not sure how...
15 years ago
Ryan Dahl
77145ba229
Throw errors from server.listen()
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago
Ryan Dahl
c1baa70fe5
Attach/Detach -> Ref/Unref
15 years ago
Rhys Jones
5b1a535cd8
Add HTTP client TLS support
15 years ago
Rhys Jones
b6dda61249
Initial TLS support
15 years ago
Johan Sørensen
04f9c9fb09
Supply the strerror as a second arg to the tcp.Connection close event
15 years ago
Ryan Dahl
2ca788e6e2
Add 'drain' event to tcp.Connection
15 years ago
Ryan Dahl
a5df0f6a65
Prefix all source files with node_
15 years ago
Ryan Dahl
a1e5089d9b
Add connection.fd getter.
15 years ago
Ryan Dahl
d949074014
Add some code comments to net.cc
15 years ago
Ryan Dahl
602f9dbf3f
SetClassName on internal classes.
15 years ago
Ryan Dahl
b66c5c9808
Replace DEFINE_SIMPLE_CALLBACK macros with explicit functions
15 years ago
Ryan Dahl
55a2e8271e
Decrease default TCP backlog to 128
...after seeing http://lionet.livejournal.com/42016.html
15 years ago
Ryan Dahl
c53aeb5a02
Call "connection" event after connection object is fully formed.
This became an apparent problem when adding setNoDelay because the command
was ignored if issued during the "connection" event.
15 years ago
Ryan Dahl
e0ec0036ca
Add connection.setNoDelay() to disable Nagle algorithm.
15 years ago
Ryan Dahl
663deb3828
delete[] instead of delete for arrays.
15 years ago
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
Deprecation warnings have been added to help the conversion to this new API.
15 years ago
Ryan
227638bac1
Lint
15 years ago
Ryan
393caeb4c9
Add Exception::Error where missing.
15 years ago
Ryan
8890070b88
Introduce "raws" encoding. Raw String.
This allows you to have binary data imported into your application via
strings instead of arrays of numbers! This needs testing before release.
15 years ago
Ryan
21a1b045f5
Byte stream to V8 decoding and encoding.
This does not (should not) change behavior. Pulls those two functions
(encode/decode) out into node.cc.
15 years ago
Ryan
2f46540d30
Create NODE_UNIXTIME macros
15 years ago
Ryan
1645b8f8b0
Asyncly do getaddrinfo() on Apple.
15 years ago
Ryan
fbf65b58f9
Use Error exceptions where possible in net.cc and file.cc
15 years ago
Ryan
7beea2cd5f
Upgrade evcom; Add setTimeout method to node.tcp.Connection
The default timeout is 60 seconds, but it can now be changed.
evcom upgrade includes fixes to force_close.
15 years ago
Ryan
116f4dea05
lint
15 years ago
Ryan
f7f11352b7
Don't Close TCP Connection/Server on destruction.
If the connection is open when the destructor is called it's a bug! Don't
want to try to compensate for bugs.
15 years ago
Ryan
368ea93bfe
Upgrade evcom - fix API issues.
15 years ago
Ryan
7aaab320b3
API: tcp.Connection "disconnect" event renamed to "close".
More semantic, since the event will be emitted on connection error,
when the connection was ever established.
15 years ago
Ryan
3b0408ec1c
Sync evcom after refactor; fix binding issues
15 years ago
Ryan
94e8721771
Add connection.readPause() and connection.readResume()
15 years ago
Ryan
7d60998ee1
Upgrade evcom
Made API changes in evcom and had to make minor change src/net.cc to comply.
15 years ago
Ryan
b849d50288
Remove unused symbols.
15 years ago
Ryan
216fb3b9b2
Bugfix: node.http.ServerRequest.setBodyEncoding('ascii') not working
Pointed out by Felix Geisendörfer.
http://groups.google.com/group/nodejs/browse_thread/thread/d061fe62eba6d3b3#
15 years ago
Ryan
396ed96b2d
Upgrade evcom - fix accepting too many connections issue
15 years ago
Ryan
9d3ed1bb92
Bugfix: negative integers in raw encoding stream.
Add test. Reported by Tim Caswell.
15 years ago
Ryan
5373c6869a
node.tcp.Server's backlog option is now an argument to listen()
15 years ago
Ryan
0fb0af3a6c
Rename evnet to evcom.
15 years ago
Ryan
e7bbda0b7f
Attach connections on Macintosh too.
15 years ago
Ryan
1b6bbc619d
Bugfix: Server-side clients not attached between creation and on_connect.
Solution is to manually add Attach() to OnConnection.
For client side it seems there is no Detach() being called after NS
resolution? Otherwise I would have removed it. That was another bug.
Note: We don't want to modify evnet's behavior to have on_connect called
directly when the socket is accepted. evnet needs to support SSL, and
on_connect is supposed to signal that the SSL connection is established. The
point here is that being "connected" and being "attached" to the event loop
are two different things. SSL stuff may be transmitted when a socket is not
"connected" but it must always be attached.
16 years ago
Ryan
fc02221393
Remove unused variable from ~Connection
16 years ago