Felix Geisendörfer
b02b54e003
Fix: Module cache did not propagate
This patch makes sure nested modules are available in their parents
cache. The module simplification broke this behavior.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/e875132469547d2
b73f61a137
15 years ago
Michael Stillwell
9f6f19df1b
Add test: modifying event listeners during callback.
15 years ago
Tim Caswell
e33c66654a
Rewrite sys.inspect to be more reliable and handle crazy edge cases.
15 years ago
isaacs
3adcdfc2e1
A rewrite of multipart library.
1. Support streaming in the simple case. Put huge warnings around the
buffering API.
2. Support nested multipart messages.
3. Support various kinds of multipart messages, including all the various
absurdities of multipart email messages.
4. Error out on various invalid types of data that might come through.
5. Gracefully several edge cases that occur when the chunk size is smaller
than the boundary length, or cuts into the \r\n, etc.
6. Provide both positive and negative tests.
15 years ago
Ryan Dahl
ae1fc497bb
Fix stdout flush issue
http://github.com/ry/node/issues#issue/53
15 years ago
Ryan Dahl
a695065305
Add failing test for stdout flush on exit
15 years ago
Ryan Dahl
fe85062046
Bugfix: blocked pumping in stdio coupling
This should fix the test in c05b5d8
by Mikeal Rogers.
15 years ago
Mikeal Rogers
c05b5d8b59
Adding test for bug in stdio.
http://groups.google.com/group/nodejs/browse_thread/thread/10fda8eaf7276642/e5d5147f2b666abd
15 years ago
Felix Geisendörfer
b73f61a137
Simplified module system
createModule got removed as it was unnecessary and caused issues by
doing its own cache checks independent of loadModule. Internal modules
are now the only globally cached modules, all other modules are only
cached by inheriting their parent modules cache.
Credits: Module specific cache and a few other diffs by Blaine Cook
431662d25c
http://romeda.org/blog/2010/01/hot-code-loading-in-nodejs.html
http://thread.gmane.org/gmane.comp.lang.javascript.nodejs/1994
15 years ago
Ryan Dahl
173a8c9842
Disable dns and fs-sendfile tests.
15 years ago
Ryan Dahl
33509bdbe5
eof -> end
15 years ago
Felix Geisendörfer
ac2abe5b1e
Bugfix: Handle Content-Type headers with charset
Some HTTP clients include a charset parameter in the Content-Type, e.g:
multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY
This patch makes the multipart parser more forgiving towards unexpected
information included in the Content-Type header.
15 years ago
Ryan Dahl
785531691b
Add buffer.unpack
15 years ago
Ryan Dahl
4347906b7f
Fix require() in test-buffer.js
15 years ago
Ryan Dahl
bf803f478b
Reimplment Buffers
15 years ago
Ryan Dahl
30b0522157
Bugfix: HTTP client automatically reconnecting
Test case by tlynn.
15 years ago
Blaine Cook
cd6397cc45
Add support for MX, TXT, and SRV records in DNS module.
15 years ago
Felix Geisendörfer
c86c614cac
Bug Fix: Late promise promise callbacks firing
Late promise bindings would fire regardless of the outcome of the
promise.
Test case by: Jonas "zimbatm" Pfenniger <jonas@pfenniger.name>
15 years ago
Ryan Dahl
dda1d681f7
Provide buffer in HTTPParser callbacks.
15 years ago
Ryan Dahl
42ee16978e
Implement new http-parser binding using Buffer
15 years ago
David Sklar
6f738d6e7a
Adjust passing-FDs test to wait until socket is really writeable
15 years ago
Felix Geisendörfer
a76c7a89ce
Implemented __dirname
It seems that the current __filename module global is mainly used to
determine the directory the current module is in. To make that
easier, this patch adds support for a __dirname module global
directly.
15 years ago
Ryan Dahl
faefb3f5a4
test-http-eof-on-connect missing require('./common')
15 years ago
Felix Geisendörfer
bfd3144861
Make unhandled Promise errors throw an exception
A promise will throw an exception unless an error handler is attached in the
same "tick" that the error is emitted. This is to avoid silent promise
failures.
15 years ago
Felix Geisendörfer
f64371fccb
Support late callback binding for Promises
Listeners attached with addCallback / addErrback will now be executed
right away if the promise has already fired.
15 years ago
Felix Geisendörfer
f2274840a9
Removed Promise.cancel()
The current implementation was bad and nobody is using it. Has a chance
of getting re-implemented by somebody who has an actual need for it.
15 years ago
Micheil Smith
6e3d12f617
Allow optional params to setTimeout, setInterval
15 years ago
Ryan Dahl
8abeffa9ea
Add process.nextTick()
This is a replacement for the common hack:
setTimeout(cb, 0);
It's much more efficient.
15 years ago
Ryan Dahl
aeb7d6d168
Add process.IdleWatcher
With priorities. Will be used for process.nextLoop().
15 years ago
Ryan Dahl
70293a43c9
API: Move Promise and EventEmitter into 'events' module
15 years ago
Ben Williamson
a3631a383b
Added regression test for issue #44
15 years ago
David Sklar
a876df6c71
Initial take on passing FDs between processes
15 years ago
isaacs
988174a629
Add tests for path module.
15 years ago
Ryan Dahl
53413598b6
Fix another problem with the EIO interface
Should call eio_poll() when given a done_poll signal as well.
Bug report and test case by Kris Zyp <kriszyp@gmail.com>
15 years ago
Benjamin Thomas
947c577c0d
Fix bug in the url module's url_parse method if 'parseQueryString' is true
15 years ago
Ryan Dahl
f80cc69c23
libeio bugfix part 3
Finally (hopefully) fix the issue that Felix reported. It's only appearing
on macintosh (test/mjsunit/test-eio-race3.js)
The trick/hack is to call eio_poll() again before reentering the event loop.
Additionally this commit implements a more complex method of calling
eio_poll(), occasionally dropping to an ev_idle watcher.
See also:
3f39772834
http://lists.schmorp.de/pipermail/libev/2010q1/000855.html
http://groups.google.com/group/nodejs/browse_thread/thread/9f8db11c792a68bb/a89705f68971f53c
15 years ago
Felix Geisendörfer
7d947f8723
Clean up multipart test case
15 years ago
Felix Geisendörfer
f86c1783b7
Handle bad requests in simplified parser API
15 years ago
Felix Geisendörfer
aa73ed973c
Added test case for the simple multipart API
So far this didn't have any test coverage.
15 years ago
Felix Geisendörfer
d9a81374b2
Throw exception for invalid multipart streams
When using the multipart parser with an regular http request, the
parser did not complain and just never finished.
15 years ago
Ryan Dahl
04dd2d51be
libeio bugfix: want_poll should be called if breaking on maxreq
Reported by shansen and hassox
http://github.com/ry/node/issues#issue/38
Will send upstream.
15 years ago
isaacs
2b3d9e4ad0
Use "url" module instead of "uri" module in http.js.
Deprecate the URI module and remove tests for it.
- Rename "uri" to "url".
- Use the "url" module instead of the "uri" module.
- Remove the url parsing from http.js
- Update http.cat with the changed field names.
- Update tests for changes to http.js
- Update documentation for changes in http.js
15 years ago
isaacs
7ff04c1f86
Add URL and QueryString modules, and tests for each.
Also, make a slight change from original on url-module to put the
spacePattern into the function. On closer inspection, it turns out that the
nonlocal-var cost is higher than the compiling-a-regexp cost.
Also, documentation.
15 years ago
Tim Caswell
fd184ee2fa
Rename "Dynamic Property" to "Getter/Setter" in sys.inspect.
15 years ago
Tim Caswell
6c68a9679b
Fix inspect to not trigger dynamic properties
but to display them as special. Add unit tests to match
15 years ago
Tim Caswell
732c6f2036
Fix inspect for the special case of an Object that inherits from Array, but has other properties.
15 years ago
Ryan Dahl
20eec646b3
[net2] add unix server to ping-pong test
15 years ago
Ryan Dahl
a8ede8dd9e
[net2] port ping pong test
15 years ago
Ryan Dahl
e2569c402f
Add some tests to test-buffer.js
15 years ago
Ryan Dahl
630bb7a012
Rename blob to buffer.
15 years ago