Commit Graph

600 Commits

Author SHA1 Message Date
Chris Josten 046aea3b2b Patch 2021-03-02 16:08:32 +01:00
Chris Josten 3c784ca2f5 First packaging attempt 2021-03-02 15:53:58 +01:00
Chris Josten 17ade7f9ca Meson: port dub configurations to Meson options 2021-03-01 22:27:37 +01:00
Chris Josten 76cf12fc22 Meson: update version no and declare dependency
* Updated the version number to be the same as the latest git tag.
* Declared this library as a dependency for use as a subproject for
  other projects
2021-03-01 16:45:33 +01:00
Mathias LANG 2418800d28
Merge pull request #170 from BorisCarvajal/fix21651_changes
import std.process.Config properly
2021-02-25 10:00:58 +09:00
Boris Carvajal b5db7d333c
import std.process.Config properly 2021-02-22 05:45:10 -03:00
Sönke Ludwig edf9eda3ef
Merge pull request #168 from vibe-d/32bit_compile_fix
32-bit compile fix
2021-01-12 19:20:28 +01:00
Sönke Ludwig 3b7a46d14c Test 32-bit Windows build. 2021-01-12 19:05:56 +01:00
Sönke Ludwig 4c772629f2 Remove support for OPTLINK builds.
This didn't link anyway and since 64-bit compilation is the default for DMD nowadays, there is no reason whatsoever to keep supporting it.
2021-01-12 19:00:40 +01:00
Sönke Ludwig cd8d90b5c4 Fix 32-bit compilation error. 2021-01-12 18:40:58 +01:00
Sönke Ludwig 21916f3022
Merge pull request #167 from vibe-d/threadedfile_tuning
Threadedfile tuning
2021-01-12 14:42:27 +01:00
Sönke Ludwig 7c2fd87308 Increase I/O buffer size.
Uses a buffer size that is more reasonable for modern transfer speeds, while still providing enough granularity for cancellation. This heavily reduces the computational overhead on SSD drives.
2021-01-12 14:23:30 +01:00
Sönke Ludwig 55cd860ea3 Implement ThreadedFileEventDriver.truncate on Windows. 2021-01-12 11:49:05 +01:00
Sönke Ludwig 5e060d2d0b
Merge pull request #165 from vibe-d/remove_travis_appveyor
Remove Travis-CI and AppVeyor configuration files
2020-11-26 15:12:11 +01:00
Sönke Ludwig 10bedb283a Attempt to rerun flaky tests to avoid having to rerun the entire GitHub action. 2020-11-26 14:57:08 +01:00
Sönke Ludwig c593bd33b2 Remove Travis-CI and AppVeyor configuration files and test old compiler versions. 2020-11-26 14:57:08 +01:00
Sönke Ludwig 92ac3f454e
Merge pull request #163 from vibe-d/fix_interrupt_behavior
Causes the event loop to exit on Posix when being interrupted by a signal
2020-11-26 10:53:11 +01:00
Sönke Ludwig 009bf7f5ed Add return value documentation to doProcessEvents. 2020-11-26 10:45:32 +01:00
Sönke Ludwig 206d3fa34e Add a note about signals to EventDriverCore.processEvents. 2020-11-26 09:48:00 +01:00
Sönke Ludwig 07d5ead617 Causes the event loop to exit on Posix when being interrupted by a signal.
Previously, the loop logic would simply retry the wait until the given timeout was actually reached (or an event got received), which could be forever. This change makes sure that after an interrupt the higher level code will get a chance to run to possibly handle the effects of the signal.

This is a fix for vibe-d/vibe-core#205.
2020-11-26 09:47:59 +01:00
Sönke Ludwig 1e5f3f04ce
Merge pull request #164 from vibe-d/github_actions
Add initial GitHub actions based CI recipe.
2020-11-26 09:47:38 +01:00
Sönke Ludwig 046fedd934 Fix ThreadedFileEventDriver.getSize on Windows.
fstat doesn't work correctly on Windows, possibly due to a bad C header translation on Druntime. Also switches to _lseeki64/lseek64 to avoid 32-bit file length limitations on 32-bit systems.
2020-11-26 09:34:18 +01:00
Sönke Ludwig 494a835adc Fix example deletion code for Windows. 2020-11-26 09:06:17 +01:00
Sönke Ludwig 3ab9283986 Avoid unsupported build configuration on Windows. 2020-11-26 09:06:17 +01:00
Sönke Ludwig 415fc984ce Add GitHub actions based CI recipe. 2020-11-26 09:06:17 +01:00
Sönke Ludwig e82de44f71
Merge pull request #161 from kubo39/travis-badge
badge moves to travis-ci.com
2020-10-30 15:25:02 +01:00
Hiroki Noda 308d69228d badge moves to travis-ci.com 2020-10-30 16:27:26 +09:00
Sönke Ludwig 5cb6ff7dd3 Fix recursive directory watcher test.
Was storing stack allocated strings, as well as not skipping all directory change events (which now is important on Linux/inotify).
2020-10-24 17:03:01 +02:00
Sönke Ludwig 4803399376 Avoid bogus file change notifications for the inotify implementation. 2020-10-24 16:42:03 +02:00
Sönke Ludwig abc8af3bc5
Merge pull request #159 from Panke/short-circuit
ChoppedVector: short-circuit opApply for elements after m_length
2020-09-07 11:23:15 +02:00
Tobias Pankrath 2fd765ba07 ChoppedVector: short-circuit opApply for elements after m_length 2020-09-06 21:42:56 +02:00
Geod24 26060a6e0b Remove some always-true conditions (versions not supported anymore) 2020-09-02 10:28:02 +02:00
Geod24 e564bba215 Trivial: Unify some spacing / style issues 2020-09-02 10:28:02 +02:00
Daniel Graczer a462db4e04 suppressing socketStream warnings during shutdown initiated by SIGINT 2020-08-31 13:58:20 +02:00
Geod24 a027c233c2 Add support for DMD 2.094 -preview=in switch
This will allow users to use -preview=in as soon as it's released.
Of course this had to uncovered a DMD bug in the process.
2020-08-31 05:00:03 +02:00
Andrej Mitrovic 6f62236b2d DNS allocateHandle(): Don't return handle in use
This is a second attempt at fixing the issue originally
mentioned in PR #152.

This will allocate a new handle if all of them are in use.
2020-08-31 02:21:05 +02:00
Tobias Pankrath 1fcc941b1f Improve documentation w.r.t to concurrent writes/reads 2020-08-31 02:19:53 +02:00
Andrej Mitrovic ac4aec341e dns: Set the result to null in cancelLookup()
When lookupHost() is called the handle returned
from allocateHandle() might be a reused handle.

The delegate will be cleared, but the result might
still be there and the assert in lookupHost()
will fail:

```
assert(!m_lookups[handle].result);
```
2020-08-19 08:03:45 +02:00
Márcio Martins deaebb18d8 Fix host lookups hanging with concurrency 2020-08-11 10:42:36 +02:00
Geod24 862b5d470c posix/dns: Fix SEGV on Musl when an error happens
When an error happens, the 'struct addrinfo' (ai)
passed to 'passToDNSCallback' can be 'null'.
It end up being passed to 'freeaddrinfo'.
With glibc, or on OSX, it is okay to pass a 'null'
pointer to 'freeaddrinfo', however this will cause
a SIGSEGV on Musl.
The standard defines that 'freeaddrinfo' must accept
what was given to 'getaddrinfo', and 'getaddrinfo'
does not accept null pointer, so the musl behavior
is not wrong per se.
2020-08-03 03:04:39 +02:00
Sönke Ludwig 9e94195bd4 Bump meson version number. 2020-05-28 18:31:12 +02:00
Sönke Ludwig ab829efc7c Rearm the CFFileDescriptor before each CFRunLoop run.
Instead of rearming from within the callback, this enables the callback before the event loop is run and before the kqueue is cleared. This at least heavily reduces the cases where the CFRunLoop hangs instead of reporting a pending kqueue event. For this reason, the safety timeout has been increased to 5 seconds.
2020-05-28 16:43:20 +02:00
Sönke Ludwig f99ba6db49 Bump meson version number. 2020-05-27 21:27:08 +02:00
Sönke Ludwig 68cbade330
Merge pull request #149 from vibe-d/fseventstream_fixes
FSEventStream fixes
2020-05-27 21:13:19 +02:00
Sönke Ludwig eb9c49a577 Fix the FSEvent rename logic.
It turned out to be impossible to determine the source and target names for a rename operation, so the actual existence of the file has to be used.
2020-05-27 17:58:28 +02:00
Sönke Ludwig 8695b4d32c Ignore sentinel events for the FSEvents watcher.
This caused the watcher to be endlessly recreated in rapid succession.
2020-05-27 17:57:27 +02:00
Sönke Ludwig 9120982bed Fix watching symlinked paths with FSEvents.
The events reported always use the canonical path, which broke the relative path logic. TO counter this, the canonical path is now determined explicitly.
2020-05-27 17:56:28 +02:00
Sönke Ludwig a77f626b97 Implement an alternative workaround for CFRunLoop hangs.
Limits the timeout for the CFRunLoop call to one second, after which kqueue will be re-checked again manually, guaranteeing that if a hang occurs, it will be resolved after at most one second.
2020-05-27 12:45:53 +02:00
Sönke Ludwig a9344c8490 Revert "Work around possible hang of CFRunLoop with pending kqueue events."
This reverts commit decbe7f6bd.

Using level triggered events resulted in 100% CPU usage, because sockets receive a constant write-ready event. They register themselves with the event loop only once in the beginning for efficiency reasons and thus may receive these events without any active waiters.

In case of kqueue it would be possible to register dynamically only when waiting, without a big performance impact, but in case of the epoll API this would result in am excessive growth of kernel calls.
2020-05-27 12:29:44 +02:00
Sönke Ludwig fb62ba3ff2 Bump meson version number. 2020-05-25 20:18:51 +02:00