Commit graph

455 commits

Author SHA1 Message Date
Leonid Kramer a0cef63b5d
Merge pull request #108 from vibe-d/watcher_allocation
Use Mallocator for Win32 file system watcher buffer
2019-04-13 20:49:28 +02:00
Sönke Ludwig 9feccbe537 Fix missing nogc annotations for userData accessors.
User data only compiled successfully for sockets before this change.
2019-04-13 17:25:47 +02:00
Sönke Ludwig 304de7a39a Use Mallocator for Win32 file system watcher buffer.
Avoids allocating using the GC, which `theAllocator` points to by default.
2019-04-09 18:23:24 +02:00
Leonid Kramer 1bbe244196
Merge pull request #107 from vibe-d/disable_so_addr
Add `StreamListenOptions.reuseAddress`.
2019-04-01 20:38:29 +02:00
The Dlang Bot b11936e4bc
Merge pull request #100 from BenjaminSchaaf/process
Add APIs for working with Subprocesses and Pipes
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2019-04-01 14:48:41 +02:00
Sönke Ludwig 891eed3d62 Add StreamListenOptions.reuseAddress and make it the default.
Replaces the current combined behavior controlled by `reusePort`, introduced by #103.
2019-04-01 13:50:33 +02:00
Benjamin Schaaf b6fa7ca091 Add Pipes and Processes to README feature table 2019-04-01 21:09:30 +11:00
Sönke Ludwig d20b7a77ee Properly zero-initialize ChoppedVector's chunk index table. 2019-04-01 10:59:28 +02:00
The Dlang Bot 87b0814ebf
Merge pull request #106 from rracariu/patch-1
Import the druntime core.sys.posix.sys.socket
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2019-03-14 16:32:42 +01:00
Radu Racariu 11ad96be4d
Import the druntime core.sys.posix.sys.socket
This will pickup platform specific definitions from the
2019-03-14 16:29:02 +02:00
Sönke Ludwig 5f703cf039
Merge pull request #104 from rracariu/patch-1
[PosixEventDriverEvents] Use Linux definitions from druntime
2019-02-23 14:04:37 +01:00
Sönke Ludwig b08bd6a9db
Merge pull request #103 from rracariu/master
Don't try to set the SO_REUSEPORT flag on Linux
2019-02-23 14:03:17 +01:00
Sönke Ludwig a59e4b6455 Make handling of corrupt Windows file system watcher events more robust.
The reason for the intermittent corruptions still needs to be found.
2019-02-22 21:29:18 +01:00
Sönke Ludwig 157de1d3f5 Allow taggedalgebraic 0.11.x. 2019-02-22 21:28:19 +01:00
Benjamin Schaaf 1afc5ca1c0 Fix waiterCount not including waiting processes 2019-02-21 22:13:05 +11:00
Radu Racariu 07b09e8692
fix @safe 2019-02-12 19:55:32 +02:00
Radu Racariu 6286c7980d
[PosixEventDriverEvents] Use Linux definitions from druntime
This doesn't duplicate the definitions form `core.sys.linux.sys.eventfd` and will pickup any platform specifics for better portability.
Fixes https://github.com/vibe-d/eventcore/issues/102
2019-02-12 19:47:37 +02:00
Radu Racariu cb06ecfbcf
don't try to set the SO_REUSEPORT flag
On Linux this option was always set, regardless if the `StreamListenOptions` specifies it.

On some systems setting that option will result in a failure.
2019-02-11 15:42:42 +02:00
Benjamin Schaaf 7ef5c6686e Fix more Windows compiler errors 2019-01-16 10:23:25 +11:00
Benjamin Schaaf dd915e74b1 Fix Windows compiler errors 2019-01-16 10:09:49 +11:00
Benjamin Schaaf 6108a64973 Fix OSX compiler errors 2019-01-15 21:32:36 +11:00
Benjamin Schaaf 7d091ed504 Add APIs for working with Subprocesses and Pipes with an implementation for Posix 2019-01-15 19:58:01 +11:00
The Dlang Bot 36f43690c6
Merge pull request #98 from vibe-d/file_truncation
Add EventDriverFiles.truncate.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2018-12-28 10:27:38 +01:00
The Dlang Bot 110030a4f5
Merge pull request #97 from vibe-d/struct_handles
Define handles as properly named structs.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2018-12-28 10:08:23 +01:00
Sönke Ludwig 8205258ee9 Define handles as properly named structs.
Greatly enhances the readability of compiler error messages, as well as sometimes considerably reducing the size of symbol bloat.
2018-12-28 00:43:11 +01:00
Sönke Ludwig 3e81cefcda Add EventDriverFiles.truncate. 2018-12-28 00:34:30 +01:00
Sönke Ludwig 91db8899c5
Merge pull request #96 from kubo39/use-monotonic-clocktype
Use monotonic clock for timeout
2018-12-23 18:07:01 +01:00
Hiroki Noda 9015f065c5 Tests should use monotonic clock too for timeout 2018-12-23 22:15:54 +09:00
Hiroki Noda 3b6b2ab900 Use monotonic clock for timeout
The system clock can be updated manually by the sys-admin or
automatically by NTP, so use monotonic clock instead.
2018-12-23 21:37:12 +09:00
The Dlang Bot 19a8fc64c8
Merge pull request #93 from vibe-d/issue78-avoid-libanl-dependency
Remove the default dependency to libanl
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2018-11-11 14:28:54 +01:00
Sönke Ludwig 968084f074 Remove the default dependency to libanl. Fixes #78.
The dependency wasn't used at all, but is now optionally used through the epoll-gaia configuration.
2018-11-11 13:07:48 +01:00
Sönke Ludwig 4ae402223c Fix compilation of the getaddrinfo_a based DNS resolver. 2018-11-11 13:06:56 +01:00
Sönke Ludwig 882402033c
Merge pull request #91 from vibe-d/MartinNowak-patch-1
typo
2018-11-06 12:20:47 +01:00
Martin Nowak 619f266a4b
typo 2018-11-06 00:54:23 +01:00
Sönke Ludwig 9d2b15f175
Merge pull request #89 from vibe-d/fix_unreferenced_timer_wait
Keep timers with active waits referenced.
2018-10-27 16:49:42 +02:00
Sönke Ludwig b33f710420 Keep timers with active waits referenced.
Avoids calling the wait callback with reference count zero. In case of a non-pending timer, the wait will be canceled if the wait reference is the last one to avoid keeping starved timers.
2018-10-27 15:45:55 +02:00
Sönke Ludwig 9b75a3b7d9
Merge pull request #88 from vibe-d/extended_timer_callback
Introduce TimerCallback2.
2018-10-27 14:11:39 +02:00
Sönke Ludwig dbb8267540 Introduce TimerCallback2.
This allows getting notified also if the timer has been stopped, so that it is guaranteed to be called, except if cancelWait is called.

Necessary for fixing vibe-d/vibe-core#86
2018-10-27 14:11:11 +02:00
The Dlang Bot 42f96060c9
Merge pull request #87 from vibe-d/graceful_handle_leak
Graceful handle leak at shutdown
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2018-10-26 22:58:08 +02:00
Sönke Ludwig 16749d0a58 Use stderr instead of stdout for debug messages.
Avoids polluting the regular application output.
2018-10-26 20:40:22 +02:00
Sönke Ludwig e2e8bf30aa Change shutdown behavior to allow graceful handle leaks.
This avoids crashing in case of any handle references left-over in GC allocated memory that gets finalized after module destructors have already been run.
2018-10-26 20:40:22 +02:00
Sönke Ludwig 38a4e4ca5f Test leaking handles through the GC. 2018-10-26 15:41:18 +02:00
Sönke Ludwig 5deeced2b5
Merge pull request #86 from vibe-d/lazy_init
Lazy driver initialization
2018-10-25 12:07:20 +02:00
Sönke Ludwig c553df66e1 Fix freeing of the loop in PosixEventDriver 2018-10-24 21:06:31 +02:00
Sönke Ludwig 4d8d08b27d Fix destruction code in ChoppedVector. 2018-10-24 21:05:45 +02:00
Sönke Ludwig 406367b6c6 Fix epoll compile error on older frontends. 2018-10-24 12:08:38 +02:00
Sönke Ludwig 6e839de7e2 Refactor PollEventDriverWatchers.
- Better encapsulates the mutex protection inside PollingThread
- Uses mallocT/freeT to allocate snapshot nodes
2018-10-24 11:38:14 +02:00
Sönke Ludwig 0b73eda8d5 Deprecate the non-nogc userData overload.
This allows more of the implementation to become nogc.
2018-10-24 11:38:14 +02:00
Sönke Ludwig 73abd867b4 Initialize the driver instance lazily. 2018-10-24 11:38:14 +02:00
Sönke Ludwig 284d4f43c3 Make the WinAPI driver initialization nogc. 2018-10-24 11:38:14 +02:00