Sean Farrell
a762934aa8
build: add support for VS2013
2013-12-17 09:15:16 +01:00
Fedor Indutny
17d60e3f94
stream: allow multiple buffers for uv_try_write
2013-12-13 22:59:47 +04:00
Fedor Indutny
7f65a74f8e
test: remove C++ style comment
2013-12-13 22:37:14 +04:00
Timothy J Fontaine
333a5b730f
Now working on v0.11.17
2013-12-13 10:32:35 -08:00
Timothy J Fontaine
ae0ed8c49d
2013.12.14, Version 0.11.16 (Unstable)
...
Changes since version 0.11.15:
* fsevents: remove kFSEventStreamCreateFlagNoDefer polyfill (ci-innoq)
* libuv: add more getaddrinfo errors (Steven Kabbes)
* unix: fix accept() EMFILE error handling (Ben Noordhuis)
* linux: fix up SO_REUSEPORT back-port (Ben Noordhuis)
* fsevents: fix subfolder check (Fedor Indutny)
* fsevents: fix invalid memory access (huxingyi)
* windows/timer: fix uv_hrtime discontinuity (Bert Belder)
* unix: fix various memory leaks and undef behavior (Fedor Indutny)
* unix, windows: always update loop time (Saúl Ibarra Corretgé)
* windows: translate system errors in uv_spawn (Alexis Campailla)
* windows: uv_spawn code refactor (Alexis Campailla)
* unix, windows: detect errors in uv_ip4/6_addr (Yorkie)
* stream: introduce uv_try_write(...) (Fedor Indutny)
2013-12-13 10:32:32 -08:00
Fedor Indutny
b5e7798a89
stream: introduce uv_try_write(...)
...
`uv_try_write(stream, buf, size)` acts like `uv_write()`,
but without queueing actual write until UV_POLLOUT (or IOCP completion).
This is useful for doing writes using on-stack `uv_write_t` requests.
fix #1025
2013-12-13 22:29:00 +04:00
Yorkie
4ed6496b9c
unix, windows: detect errors in uv_ip4/6_addr
2013-12-13 09:27:28 +01:00
Fedor Indutny
eff3b1316e
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
.mailmap
ChangeLog
src/version.c
2013-12-13 00:58:40 +04:00
Alexis Campailla
b83caf8624
windows: uv_spawn code refactor
2013-12-12 09:53:14 -08:00
Alexis Campailla
b65b74741e
windows: translate system errors in uv_spawn
...
We weren't always translating system errors for in uv_spawn.
This is half a fix for node's unit test
test-child-process-cwd.js on win.
The rest will go into node lib.
It also fixes test-child-process-exec-error
2013-12-12 09:53:10 -08:00
Timothy J Fontaine
f3d311edc4
Now working on v0.10.21
2013-12-11 20:22:00 -08:00
Timothy J Fontaine
04141464dd
2013.12.13, Version 0.10.20 (Stable)
...
Changes since version 0.10.19:
* linux: fix up SO_REUSEPORT back-port (Ben Noordhuis)
* fs-event: fix invalid memory access (huxingyi)
2013-12-11 20:21:57 -08:00
Saúl Ibarra Corretgé
15af49a7a0
unix, windows: always update loop time
...
Fixes #846
2013-12-10 09:13:34 +01:00
Saúl Ibarra Corretgé
69d2b69647
build: check if pkg-config is installed
...
Also, don't check for a specific pkg-config version, since libuv doesn't
use pkg-config itself
2013-12-09 09:03:24 +01:00
Joshua Neuheisel
f44f8124e0
build: hide dtrace rules unless needed
...
When using configure, there are situations where libuv will attempt
to build uv-dtrace.h, even if it is configured with --disable-dtrace.
For example, if libuv is first configured with dtrace enabled, then
built, the .deps files will contain references to include/uv-dtrace.h.
After a make clean and configure --disable-dtrace, the build will still
attempt to create include/uv-dtrace.h and fail. make will see the
dependency reference (which survives the make clean), use the rule
(which is always added to the Makefile), and fail since DTRACE is not
defined.
This commit protects the rules to make uv-dtrace.h with the proper
conditionals to ensure the rules are not written if --disable-dtrace
is chosen.
Fix #963 .
2013-12-09 11:25:55 +04:00
Andrej Manduch
6c063317b7
build: add support for pkg-config
2013-12-07 00:49:25 +01:00
Fedor Indutny
646de34f5e
unix: fix various memory leaks and undef behavior
...
Kindly suggested by `cppcheck`.
2013-12-07 02:29:43 +04:00
Maciej Małecki
8094ac2129
doc: document how to run tests
2013-12-05 14:56:53 +04:00
Tenor Biel
2e58ea8fd5
doc: fixed typo in readme
...
The link to nodejs.org in README.md was broken.
2013-11-30 20:21:39 -08:00
Bert Belder
39db22594d
doc: add guidelines for contributing
2013-12-01 03:23:18 +01:00
Bert Belder
f6c1a270ed
Merge branch 'v0.10'
2013-11-29 21:42:18 -08:00
Bert Belder
44ecaa7c98
windows/timer: fix uv_hrtime discontinuity
...
Large performance counter frequency values would cause overflows, even
when 64-bit integers were used to do the multiplication with NANOSEC.
Fix this by using floating point math instead.
Fixes #850
2013-11-29 21:38:53 -08:00
huxingyi
da32344730
fs-event: fix invalid memory access
...
file_info->FileName is not null terminated.
2013-11-29 20:57:35 -08:00
isaacs
5812e19bf6
Merge branch 'v0.10'
2013-11-29 16:25:58 -08:00
Alex Gaynor
47d98b64c4
doc: Removed use of gendered pronouns
2013-11-29 16:25:01 -08:00
Ben Noordhuis
9342ef7155
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
src/unix/udp.c
2013-11-27 17:35:57 +01:00
Ben Noordhuis
7bb7371fc5
build: make ./gyp_uv.py -f eclipse work
...
The eclipse backend (like the ninja backend) does not support the
--generator_output switch.
2013-11-27 17:28:03 +01:00
Fedor Indutny
bf5038df40
fsevents: fix subfolder check
...
First of all, a bit of explanation of what happens there:
1. FSEvents emits absolute paths to changed files or directories
2. We cut off the first part of such paths, which is equal to handle's
real path ('/dir/subdir/subsubdir`, without trailing slash)
3. Then, if we are running in non-recursive mode, we discard paths that
have slashes ('/') as a non-first character in them
2013-11-26 13:24:57 +04:00
Ben Noordhuis
74457d08ba
linux: fix up SO_REUSEPORT back-port
...
Commit 3d2c820 back-ports a patch from the master branch that disables
the use of SO_REUSEPORT on Linux for reasons mentioned in the commit
log.
Unfortunately, the back-port was incomplete; another setsockopt() call
site in src/unix/udp.c was overlooked. This commit rectifies that.
Hat tip to Luca Bruno for helping troubleshoot the issue.
2013-11-25 16:18:01 +01:00
Marc Schlaich
c3e05bafa5
gitignore: ignore *.pyc files
...
The gyp build on Windows produces a *.pyc file as of commit 991409e .
2013-11-25 16:27:28 +01:00
Ben Noordhuis
93cc7e5ce1
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
build.mk
test/test-emfile.c
test/test-list.h
2013-11-25 13:00:57 +01:00
Ben Noordhuis
a43537eead
test: back-port EMFILE test from master branch
...
Back-port the test from commit 27795cf from the master branch ("unix:
fix accept() EMFILE error handling").
2013-11-25 12:58:39 +01:00
Ben Noordhuis
27795cfc0f
unix: fix accept() EMFILE error handling
...
Fix a bug that was introduced in commit 3ee4d3f ("unix, windows:
return error codes directly") and add a regression test for good
measure.
Hat tip to Fedor for pointing out the issue.
Fixes #1007 .
2013-11-25 01:54:47 +01:00
Steven Kabbes
dbe9905799
libuv: add more getaddrinfo errors
2013-11-25 00:53:07 +01:00
ci-innoq
c438e739a8
fsevents: remove kFSEventStreamCreateFlagNoDefer polyfill
...
The kFSEventStreamCreateFlagNoDefer flag is already
defined in CarbonCore/FSEvents.h since OS X 10.5.
Fixes #1000 .
2013-11-23 12:20:30 +04:00
Timothy J Fontaine
3a01e68385
Now working on v0.11.16
2013-11-20 08:22:28 -08:00
Timothy J Fontaine
bfe645ed7e
2013.11.21, Version 0.11.15 (Unstable)
...
Changes since version 0.11.14:
* fsevents: report errors to user (Fedor Indutny)
* include: UV_FS_EVENT_RECURSIVE is a flag (Fedor Indutny)
* linux: use CLOCK_MONOTONIC_COARSE if available (Ben Noordhuis)
* build: make systemtap probes work with gyp build (Ben Noordhuis)
* unix: update events from pevents between polls (Fedor Indutny)
* fsevents: support japaneese characters in path (Chris Bank)
* linux: don't turn on SO_REUSEPORT socket option (Ben Noordhuis)
* queue: strengthen type checks (Ben Noordhuis)
* include: remove uv_strlcat() and uv_strlcpy() (Ben Noordhuis)
* build: fix windows smp build with gyp (Geert Jansen)
* unix: return exec errors from uv_spawn, not async (Alex Crichton)
* fsevents: use native character encoding file paths (Ben Noordhuis)
* linux: handle EPOLLHUP without EPOLLIN/EPOLLOUT (Ben Noordhuis)
* windows: use _snwprintf(), not swprintf() (Ben Noordhuis)
* fsevents: use FlagNoDefer for FSEventStreamCreate (Fedor Indutny)
* unix: fix reopened fd bug (Fedor Indutny)
* core: fix fake watcher list and count preservation (Fedor Indutny)
* unix: set close-on-exec flag on received fds (Ben Noordhuis)
* netbsd, openbsd: enable futimes() wrapper (Ben Noordhuis)
* unix: nicer error message when kqueue() fails (Ben Noordhuis)
* samples: add socks5 proxy sample application (Ben Noordhuis)
2013-11-20 08:22:25 -08:00
Ben Noordhuis
bde41b255b
samples: add socks5 proxy sample application
2013-11-19 13:20:31 +01:00
Ben Noordhuis
ab37249975
unix: nicer error message when kqueue() fails
...
Print the error message rather than just the errno. The fact that the
errno is 24 is only informative to people that have their operating
system's error codes memorized.
2013-11-18 21:00:14 +01:00
Ben Noordhuis
f38869898d
netbsd, openbsd: enable futimes() wrapper
...
OpenBSD and NetBSD have working futimes() implementations. This commit
makes uv_fs_futime() work on those platforms.
2013-11-16 23:01:14 +01:00
Ben Noordhuis
0c05532e13
test: don't connect to 0.0.0.0
...
OpenBSD won't let you do that, the connect() system call fails with
an EINVAL error. Connect to 127.0.0.1 instead.
2013-11-16 21:58:03 +01:00
Ben Noordhuis
e9f75fb146
unix: set close-on-exec flag on received fds
...
Set the close-on-exec flag on file descriptors that we've received with
recvmsg() so we don't leak them when calling fork() afterwards.
On Linux, we use the MSG_CMSG_CLOEXEC flag when supported (2.6.23 and
up.)
On older Linux versions and other platforms, we walk the received file
descriptors and set the close-on-exec flag for each fd manually. That
won't entirely avoid race conditions when other threads call fork() or
clone() but at least we're less likely to leak file descriptors now.
2013-11-15 23:13:06 +01:00
Fedor Indutny
86b5c1ef1c
test: test fsevents error reporting
...
Create a lot of `FSEventStream`s to make `FSEventStreamStart()` fail.
Fetch the error code and verify that it is correct.
2013-11-13 18:18:56 +04:00
Ben Noordhuis
c2c92fa65d
build: add test-tcp-close-accept.c to test deps
...
Add test/test-tcp-close-accept.c to the dependency list of the
`make check` target of the autotools build.
2013-11-13 14:00:55 +01:00
Ben Noordhuis
17711b9053
Merge remote-tracking branch 'origin/v0.10'
...
Conflicts:
AUTHORS
ChangeLog
src/unix/darwin.c
src/version.c
2013-11-13 13:52:53 +01:00
Ben Noordhuis
026241ca67
unix: unbreak bsd build after bbccafb
...
Unbreak the build on the BSDs after commit bbccafb . Move the new
uv__platform_invalidate_fd() function from src/unix/darwin.c to
src/unix/kqueue.c.
2013-11-13 12:20:09 +01:00
Timothy J Fontaine
1578a5a371
Now working on v0.10.20
2013-11-12 10:54:29 -08:00
Timothy J Fontaine
33959f7524
2013.11.13, Version 0.10.19 (Stable)
...
Changes since version 0.10.18:
* darwin: avoid calling GetCurrentProcess (Fedor Indutny)
* unix: update events from pevents between polls (Fedor Indutny)
* fsevents: support japaneese characters in path (Chris Bank)
* linux: don't turn on SO_REUSEPORT socket option (Ben Noordhuis)
* build: fix windows smp build with gyp (Geert Jansen)
* linux: handle EPOLLHUP without EPOLLIN/EPOLLOUT (Ben Noordhuis)
* unix: fix reopened fd bug (Fedor Indutny)
* core: fix fake watcher list and count preservation (Fedor Indutny)
2013-11-12 10:54:25 -08:00
Fedor Indutny
6149b66ccb
Merge branch 'v0.10'
...
Conflicts:
build.mk
src/unix/core.c
src/unix/darwin.c
2013-11-12 15:30:54 +04:00
Fedor Indutny
f50ccd5238
core: fix fake watcher list and count preservation
...
Fake watcher list and count should be preserved only if
`loop->watchers` was already allocated.
2013-11-12 15:24:33 +04:00