Ben Noordhuis
a6f2a4f834
Merge branch 'v0.10' into v1.x
...
Conflicts:
AUTHORS
ChangeLog
README.md
config-unix.mk
include/uv.h
src/unix/internal.h
src/unix/kqueue.c
src/unix/linux-core.c
src/unix/stream.c
src/uv-common.c
src/uv-common.h
src/version.c
test/test-osx-select.c
2014-12-05 19:18:36 +01:00
Ben Noordhuis
9da5fd443e
unix, windows: add uv_loop_configure() function
...
The only supported option right now is UV_LOOP_BLOCK_SIGNAL, which only
supports the SIGPROF signal and only on UNIX platforms. So yes, it is
kind of limited right now. But everything has to start somewhere.
Refs strongloop/strong-agent#3 and strongloop-internal/scrum-cs#37 .
PR-URL: https://github.com/libuv/libuv/pull/15
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2014-12-05 17:39:43 +01:00
Bert Belder
0a8e81374e
2014.11.27, Version 1.0.1 (Stable)
...
Changes since version 1.0.0:
* readme: remove Rust from users (Elijah Andrews)
* doc,build,include: update project links (Ben Noordhuis)
* doc: fix typo: Strcutures -> Structures (Michael Ira Krufky)
* unix: fix processing process handles queue (Saúl Ibarra Corretgé)
* win: replace non-ansi characters in source file (Bert Belder)
2014-11-26 21:31:41 +01:00
Ben Noordhuis
7ce1113885
doc,build,include: update project links
...
The project home has moved from https://github.com/joyent/libuv to
https://github.com/libuv/libuv . Update the links inside the repo.
2014-11-25 15:39:12 +01:00
Saúl Ibarra Corretgé
feb2a9e694
2014.11.21, Version 1.0.0 (Stable)
...
Changes since version 1.0.0-rc2:
* doc: fix git/svn url for gyp repo in README (Emmanuel Odeke)
* windows: fix fs_read with nbufs > 1 and offset (Unknown W. Brackets)
* win: add missing IP_ADAPTER_UNICAST_ADDRESS_LH definition for MinGW
(huxingyi)
* doc: mention homebrew in README (Mikhail Mukovnikov)
* doc: add learnuv workshop to README (Thorsten Lorenz)
* doc: fix parameter name in uv_fs_access (Saúl Ibarra Corretgé)
* unix: use cfmakeraw() for setting raw TTY mode (Yuri D'Elia)
* win: fix uv_thread_self() (Alexis Campailla)
* build: add x32 support to gyp build (Ben Noordhuis)
* build: remove dtrace probes (Ben Noordhuis)
* doc: fix link in misc.rst (Manos Nikolaidis)
* mailmap: remove duplicated entries (Saúl Ibarra Corretgé)
* gyp: fix comment regarding version info location (Saúl Ibarra
Corretgé)
2014-11-20 19:34:12 +01:00
Saúl Ibarra Corretgé
e03c0c7383
doc: fix parameter name in uv_fs_access
...
Closes #1560
2014-11-06 21:14:57 -05:00
Saúl Ibarra Corretgé
f277e80707
version: now working on 1.0.0-rc3
2014-10-20 22:50:40 +02:00
Saúl Ibarra Corretgé
e3ea6c1179
2014.10.21, Version 1.0.0-rc2 (Pre-release)
...
Changes since version 1.0.0-rc1:
* build: add missing fixtures to distribution tarball (Rob Adams)
* doc: update references to current stable branch (Zachary Newman)
* fs: fix readdir on empty directory (Fedor Indutny)
* fs: rename uv_fs_readdir to uv_fs_scandir (Saúl Ibarra Corretgé)
* doc: document uv_alloc_cb (Saúl Ibarra Corretgé)
* doc: add migration guide from version 0.10 (Saúl Ibarra Corretgé)
* build: add DragonFly BSD support in autotools (Robin Hahling)
* doc: document missing stream related structures (Saúl Ibarra Corretgé)
* doc: clarify uv_loop_t.data field lifetime (Saúl Ibarra Corretgé)
* doc: add documentation for missing functions and structures (Saúl
Ibarra Corretgé)
* doc: fix punctuation and grammar in README (Jeff Widman)
* windows: return libuv error codes in uv_poll_init() (cjihrig)
* unix, windows: add uv_fs_access() (cjihrig)
* windows: fix netmask detection (Alexis Campailla)
* unix, windows: don't include null byte in uv_cwd size (Saúl Ibarra
Corretgé)
* unix, windows: add uv_thread_equal (Tomasz Kołodziejski)
* windows: fix fs_write with nbufs > 1 and offset (Unknown W. Brackets)
2014-10-20 22:47:56 +02:00
Tomasz Kołodziejski
59658a8de7
unix, windows: add uv_thread_equal
2014-10-20 09:51:49 +02:00
cjihrig
c18205a1c5
unix, windows: add uv_fs_access()
2014-10-13 10:23:53 +02:00
Saúl Ibarra Corretgé
03e53f1cf7
fs: rename uv_fs_readdir to uv_fs_scandir
...
Closes #1431
2014-09-25 10:09:58 +02:00
Saúl Ibarra Corretgé
01293ac03a
version: now working on 1.0.0-rc2
2014-09-18 18:48:09 +02:00
Saúl Ibarra Corretgé
0c28bbf7b4
version: set version to 1.0.0-rc1
2014-09-18 18:13:53 +02:00
Alexis Campailla
6ced8c2cc7
windows: improve timer precision
...
Improve timing precision by using QueryPerformanceCounter.
This is part of the fix for Node.js' test-timers-first-fire.js.
2014-09-17 23:17:41 +02:00
Saúl Ibarra Corretgé
f70b3fae8b
version: add ability to specify a version suffix
2014-09-11 20:58:41 +02:00
Saúl Ibarra Corretgé
1cc5f179f5
include: cleanup uv.h
...
Remove comments describing the API which are now part of the
documentation, thus avoiding future comment rot (and removing the
existing part).
2014-09-11 09:38:35 +02:00
Saúl Ibarra Corretgé
2d5eaea1cd
unix: simplify how process handle queue is managed
2014-09-04 10:06:52 +02:00
mattn
ae6197d730
windows: remove duplicated field
...
Fixes build
2014-09-03 18:42:46 +02:00
Saúl Ibarra Corretgé
06f9e1438e
core: add a reserved field to uv_handle_t and uv_req_t
...
Just in case we need to work hard in keeping ABI compatibility.
2014-08-29 13:27:53 +02:00
Saúl Ibarra Corretgé
e524f89beb
core: update version to 1.0.0
2014-08-29 10:31:50 +02:00
Saúl Ibarra Corretgé
4ca9a36389
unix, windows: add uv_fileno
...
Returns the platform specific file descriptor for handles that are
backed by one. The datatype is abstracted as uv_os_fd_t, which maps to
int on Unices and HANDLE on Windows.
Users can use this function to set specific socket options, for example,
in a non portable way.
This function is essentially a shotgun, you better be careful with
whatever you do with it, don't blame me if you used it to get the fd of
a stream, close it yourself and expect things to Just Work.
2014-08-27 10:53:40 +02:00
Saúl Ibarra Corretgé
df8ab507a0
fs: extend reported types in uv_fs_readdir_next
...
Support all possible types on Unix, and files, directories and links on
Windows. Some systems (hello SunOS!) don't have the d_type field on struct
dirent, so mark them as UV_DIRENT_UNKNOWN.
2014-08-15 16:44:44 +02:00
Fedor Indutny
ab2c4425a5
fs: introduce uv_readdir_next() and report types
...
Introduce:
int uv_fs_readdir_next(uv_fs_t* req, uv_dirent_t* ent);
`uv_fs_readdir()` is not returning a file names list in `req->ptr`
anymore, the proper way to gather them is to call `uv_fs_readdir_next()`
in a callback.
2014-08-14 17:19:45 +04:00
Pavel Platto
a669f21bf8
windows: use OpenBSD implementation for uv_fs_mkdtemp
2014-08-12 10:04:09 +02:00
Leonard Hecker
4c90cc8e14
unix: fix typedef of uv_buf_t
...
Typedefs of unnamed structs cannot be forward declared.
Giving the uv_buf_t struct a name makes forward declarations possible.
2014-08-10 17:30:13 +02:00
huxingyi
ca4741b4a5
windows: fix build on MinGW
2014-08-10 12:09:04 +02:00
Andrius Bentkus
0ecee213ea
unix, windows: add uv_recv_buffer_size and uv_send_buffer_size
2014-08-09 11:36:35 +02:00
Jameson Nash
837c62c71b
windows: make uv_read_stop immediately stop reading
...
This implements locking around the blocking call to ReadFile to get
around a Windows kernel bug where a blocking ReadFile operation on a
stream can deadlock the thread. This allows uv_read_stop to immediately
cancel a pending IO operation, and allows uv_pipe_getsockname to
"pause" any pending read (from libuv) while it retrieves the
sockname information.
If unsupported by the OS (pre-Vista), this reverts to the old
(e.g. deadlock-prone) behavior
Closes #1313
2014-08-09 11:10:57 +02:00
Saúl Ibarra Corretgé
02e1ebd40b
include: remove unneeded EADDRINFO errno
...
EADDRINFO is not a readl errno, it was used to signal any error that
getaddrinfo would return, but we return actual errors now.
2014-08-07 21:24:55 +02:00
Saúl Ibarra Corretgé
a9a4872c29
Now working on v0.11.29
2014-08-07 12:21:41 +02:00
Saúl Ibarra Corretgé
fc9e2a0bc4
2014.08.08, Version 0.11.28 (Unstable)
...
Changes since version 0.11.27:
* unix, windows: const-ify handle in uv_udp_getsockname (Rasmus
Pedersen)
* windows: use UV_ECANCELED for aborted TCP writes (Saúl Ibarra
Corretgé)
* windows: add more required environment variables (Jameson Nash)
* windows: sort environment variables before calling CreateProcess
(Jameson Nash)
* unix, windows: move uv_loop_close out of assert (John Firebaugh)
* windows: fix buffer overflow on uv__getnameinfo_work() (lilohuang)
* windows: add uv_backend_timeout (Jameson Nash)
* test: disable tcp_close_accept on Windows (Saúl Ibarra Corretgé)
* windows: read the PATH env var of the child (Alex Crichton)
* include: avoid using C++ 'template' reserved word (Iñaki Baz Castillo)
* include: fix version number (Saúl Ibarra Corretgé)
2014-08-07 12:18:10 +02:00
Saúl Ibarra Corretgé
6bcb799a0d
include: fix version number
2014-08-07 12:17:06 +02:00
Iñaki Baz Castillo
a1ff22cb7e
include: avoid using C++ 'template' reserved word
...
Closes #1394
2014-08-06 12:52:46 +02:00
Rasmus Christian Pedersen
e72d48ddab
unix, windows: const-ify handle in uv_udp_getsockname
2014-07-31 22:27:36 +02:00
Alexis Campailla
6d3a051eb4
windows: relay TCP bind errors via ipc
...
This is the libuv side of the fix for Node's cluster module on Windows.
https://github.com/joyent/node/issues/7691
Windows and Unix return certain socket errors (i.e. EADDRINUSE) at
different times: bind on Windows, and listen on Unix.
In an effort to hide this difference, libuv on Windows stores such
errors in the bind_error field of uv_tcp_t, to defer raising it at
listen time.
This worked fine except for the case in which a socket is shared in
a Node cluster and a bind error occurs.
A previous attempt to fix this (
d1e6be1460
3da36fe00e
) was flawed becaused in an attempt to relay the error at the JS level
it caused the master to start accepting connections.
With this new approach, libuv itself is relaying the bind errors,
providing for a uniform behavior of uv_tcp_listen.
2014-07-31 17:24:40 +02:00
Pavel Platto
e99b89f2ad
unix, windows: add uv_fs_mkdtemp
2014-07-31 09:43:55 +02:00
Andrew Low
cdc979dbe0
aix: improve AIX compatibility
2014-07-22 22:57:24 +02:00
Graham Lee
dc1ea27c73
doc: clarify the return value of uv_default_loop
2014-07-13 11:23:08 +02:00
Iñaki Baz Castillo
bf6e90f4d6
doc: cleanup API documentation in uv.h
2014-07-06 22:33:15 +02:00
mattn
b17223cd60
build: fix build on MinGW32
2014-07-06 20:40:59 +02:00
Andrius Bentkus
b9b386ac5a
doc: grammar, udp documentation fix up
2014-07-05 11:23:48 +02:00
Saúl Ibarra Corretgé
40ad12e5be
unix: return UV_EAGAIN if uv_try_write cannot write any data
2014-07-04 20:45:09 +02:00
Andrius Bentkus
0d43992c3b
unix, win: add uv_udp_try_send
...
The function returns UV_EAGAIN if the queue is not empty and
the message couldn't be sent immediately.
2014-07-04 18:30:33 +02:00
Andrius Bentkus
b769484ca3
unix, win: add send_queue_size and send_queue_count to uv_udp_t
...
This functionality is present in stream and uv_udp_t has a queue
as well so it makes sense for udp to have a send_write_size.
Since udp sends entire messages atomically, the send_queue_count field
lets the user determine how many messages are there left to send.
2014-07-04 18:28:18 +02:00
Andrius Bentkus
d17bfc617e
doc: add documentation to uv_udp_start_recv
2014-07-02 18:49:06 +02:00
Saúl Ibarra Corretgé
4bace4d67c
unix: use struct sockaddr_storage for target UDP addr
2014-06-29 23:52:46 +02:00
Saúl Ibarra Corretgé
8d11aacb79
unix, windows: use the same threadpool implementation
2014-06-27 14:27:04 +02:00
Tim Cooper
546fa7d508
doc: remove duplicate word
2014-06-27 08:16:53 +02:00
Fedor Indutny
4661f2d6c0
Now working on v0.11.27
2014-06-27 04:41:02 +04:00
Fedor Indutny
115281a105
2014.06.28, Version 0.11.26 (Unstable)
...
Changes since version 0.11.25:
* windows: add VT100 codes ?25l and ?25h (JD Ballard)
* windows: add invert ANSI (7 / 27) emulation (JD Ballard)
* unix: fix handling error on UDP socket creation (Saúl Ibarra Corretgé)
* unix, windows: getnameinfo implementation (Rasmus Pedersen)
* heap: fix `heap_remove()` (Fedor Indutny)
* unix, windows: fix parsing scoped IPv6 addresses (Saúl Ibarra
Corretgé)
* windows: fix handling closed socket while poll handle is closing (Saúl
Ibarra Corretgé)
* thread: barrier functions (Ben Noordhuis)
* windows: fix PYTHON environment variable usage (Jay Satiro)
* unix, windows: return system error on EAI_SYSTEM (Saúl Ibarra
Corretgé)
* windows: fix handling closed socket while poll handle is closing (Saúl
Ibarra Corretgé)
* unix: don't run i/o callbacks after prepare callbacks (Saúl Ibarra
Corretgé)
* windows: add tty unicode support for input (Peter Atashian)
* header: introduce `uv_loop_size()` (Andrius Bentkus)
* darwin: invoke `mach_timebase_info` only once (Fedor Indutny)
2014-06-27 04:40:57 +04:00