eca008a3 | 23-Mar-2013 |
Ben Noordhuis |
Merge remote-tracking branch 'origin/v0.10'
|
9b619396 | 21-Mar-2013 |
Ben Noordhuis |
unix: make timers handle large timeouts This commit fixes two closely related integer overflow bugs: * Timers with a timeout > INT_MAX cause uv__next_timeout() to return a neg
unix: make timers handle large timeouts This commit fixes two closely related integer overflow bugs: * Timers with a timeout > INT_MAX cause uv__next_timeout() to return a negative value. * Timers with very large timeouts (close or equal to ULLONG_MAX) run on the next tick. In both cases, clamp the values to prevent the overflow from happening. Fixes joyent/node#5101.
show more ...
|
77cb29a7 | 05-Mar-2013 |
Brian Mazza |
unix: make uv_timer_init() initialize repeat uv_timer_get_repeat() should return 0 for timers that haven't been started. |
499c7976 | 12-Mar-2013 |
Timothy J Fontaine |
unix, windows: nanosecond resolution for uv_fs_[fl]stat Closes #739. |
ab935a25 | 17-Mar-2013 |
Ben Noordhuis |
include: use x macros for uv_any_{handle,req} unions Generate the members of the uv_any_handle and uv_any_req unions with the UV_HANDLE_TYPE_MAP and UV_REQ_TYPE_MAP macros. Eases mainten
include: use x macros for uv_any_{handle,req} unions Generate the members of the uv_any_handle and uv_any_req unions with the UV_HANDLE_TYPE_MAP and UV_REQ_TYPE_MAP macros. Eases maintenance when new handle or request types are added.
show more ...
|
a9740c9b | 16-Mar-2013 |
Ben Noordhuis |
build: rename OS to PLATFORM Rename the OS make variable to PLATFORM, it conflicts with the OS env var. That is, running `make` when the OS env var is set, may cause spurious build b
build: rename OS to PLATFORM Rename the OS make variable to PLATFORM, it conflicts with the OS env var. That is, running `make` when the OS env var is set, may cause spurious build breakage. Fixes #737.
show more ...
|
b45a74fa | 15-Mar-2013 |
Fedor Indutny |
stream: run try_select only for pipes and ttys Its not necesary for TCP and other streams, since fd is always working with kqueue there. |
7b66ea18 | 14-Mar-2013 |
Ben Noordhuis |
unix: improve uv_guess_handle() implementation Make it understand FIFOs, character devices and sockets. |
9f714a1d | 14-Mar-2013 |
Ben Noordhuis |
include: bump UV_VERSION_MINOR Fixes #740. |
905d56c1 | 12-Mar-2013 |
Ben Noordhuis |
unix: fix uv_tcp_simultaneous_accepts() logic Inverts the meaning of the 'enable' argument. Before, it actually set the UV_TCP_SINGLE_ACCEPT flag when enable=1. Now it clears it, which i
unix: fix uv_tcp_simultaneous_accepts() logic Inverts the meaning of the 'enable' argument. Before, it actually set the UV_TCP_SINGLE_ACCEPT flag when enable=1. Now it clears it, which is what uv-win does and what you would expect it to do.
show more ...
|
2f84a575 | 05-Mar-2013 |
Timothy J Fontaine |
test: add tap output for windows |
5462dab8 | 09-Mar-2013 |
Bert Belder |
win/tcp: don't enable iocp sync bypass when iocp emulation is used When iocp sync bypass is in use libuv doesn't expect the system to generate events when an i/o operation completes sync
win/tcp: don't enable iocp sync bypass when iocp emulation is used When iocp sync bypass is in use libuv doesn't expect the system to generate events when an i/o operation completes synchronously. However when iocp emulation is enabled an event will always be generated because SetFileCompletionNotificationModes() doesn't stop OVERLAPPED.hEvent from becoming signaled. This should fix joyent/node#4959.
show more ...
|
f59dc221 | 09-Mar-2013 |
Bert Belder |
win: fix potential HANDLE corruption due to incorrect cast Closes #738. |
b68ee404 | 07-Mar-2013 |
isaacs |
win: Map ERROR_INVALID_FUNCTION to EISDIR This error is raised when calling read() or write() on a directory. A bit of googling turns up some cases where this error can be raised
win: Map ERROR_INVALID_FUNCTION to EISDIR This error is raised when calling read() or write() on a directory. A bit of googling turns up some cases where this error can be raised that are not properly mapped to EISDIR, but are also cases that libuv doesn't really care about, like the Password Manager API, GetFirmwareEnvironmentVariable, or CreateTapePartition. If libuv ever needs to handle these cases, then I suppose that the ERROR_INVALID_FUNCTION->EISDIR mapping could be done directly in the fs read() and write() functions, but doing so at this point seems premature, as it makes the error code mapping a bit more messy. Fixes joyent/node#4951
show more ...
|
8fbe4337 | 07-Mar-2013 |
Ben Noordhuis |
unix: please valgrind, free memory in threadpool.c |
dac5a758 | 06-Mar-2013 |
Ben Noordhuis |
unix: replace volatile cast with ACCESS_ONCE macro |
e0df7b68 | 06-Mar-2013 |
Ben Noordhuis |
unix: fix strict aliasing warning in udp.c |
b6a50c72 | 06-Mar-2013 |
Ben Noordhuis |
unix: add uv_buf_t static asserts to core.c Verify that our uv_buf_t type is ABI-compatible with struct iovec. |
ef9b0655 | 06-Mar-2013 |
Ben Noordhuis |
unix: add STATIC_ASSERT macro |
ee9899e2 | 06-Mar-2013 |
Ben Noordhuis |
unix: fix strict aliasing warnings, macro-ify functions Replace a few internal functions in uv-common.h with macros to avoid strict aliasing warnings with older versions of gcc.
unix: fix strict aliasing warnings, macro-ify functions Replace a few internal functions in uv-common.h with macros to avoid strict aliasing warnings with older versions of gcc. It's not smart enough to figure out that e.g. a uv_tcp_t is an instance of uv_handle_t with similar alignment requirements and therefore no aliasing happens. More recent versions of gcc don't suffer from this. I'm not normally in the habit of catering to compiler defects but the aliasing warnings drown out legitimate warnings, hence the change.
show more ...
|
1e97b456 | 06-Mar-2013 |
Ben Noordhuis |
unix: honor UV_THREADPOOL_SIZE environment var Make the size of the thread pool configurable through an environment variable. For sanity reasons, the size is clamped to the range 1-128. |
f89125e0 | 05-Mar-2013 |
Bert Belder |
win/tty: fix typo in color attributes enumeration |
4abad238 | 05-Mar-2013 |
Bert Belder |
win/tty: don't touch insert mode or quick edit mode Hopefully this fixes joyent/node#4809. |
8a99762c | 05-Mar-2013 |
Bert Belder |
win/tty: fix case where uv_read_start incorrectly reports failure In very rare circumstances a uv_read_start() call on a uv_tty_t handle in raw mode would return -1 but there was no actu
win/tty: fix case where uv_read_start incorrectly reports failure In very rare circumstances a uv_read_start() call on a uv_tty_t handle in raw mode would return -1 but there was no actual failure. This patch fixes that.
show more ...
|
0b26af37 | 05-Mar-2013 |
Ben Noordhuis |
unix: handle POLLERR and POLLHUP in uv__stream_io Fixes a busy loop when the file descriptor emits POLLHUP but not POLLIN or POLLOUT, e.g. when polling the read end of a pipe and the wri
unix: handle POLLERR and POLLHUP in uv__stream_io Fixes a busy loop when the file descriptor emits POLLHUP but not POLLIN or POLLOUT, e.g. when polling the read end of a pipe and the write end is closed. Fixes joyent/node#4923.
show more ...
|