The Dlang Bot
8d7c1e3c96
Merge pull request #27 from vibe-d/fix_threaded_file
...
Fix ThreadedFileEventDriver read/write issues.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2017-10-30 23:51:40 +01:00
Sönke Ludwig
c4550f0e59
Fix ThreadedFileEventDriver read/write issues.
...
I/O errors were being reported as IOStatus.ok instead of IOStatus.error, and the I/O operation finalization protocol had a potential race-condition when storing the number of bytes processed.
2017-10-30 22:54:14 +01:00
The Dlang Bot
5203766044
Merge pull request #26 from vibe-d/issue25-periodic-timers
...
Fix periodic timers blocking other timers. Fixes #25 .
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2017-09-26 18:24:29 +02:00
Sönke Ludwig
8799b7b01e
Add assertion.
2017-09-26 15:49:13 +02:00
Sönke Ludwig
60407b783b
Fix re-enqueuing of periodic timers. Fixes #25 .
...
Periodic timers were first re-enqueued and then removed, effectively causing them to stay at their old position, cutting off the tail of the timer queue.
2017-09-26 15:49:13 +02:00
Sönke Ludwig
ef7c19d373
Add test for issue #25 - periodic timers overlapping single-shot timers.
2017-09-26 15:49:09 +02:00
Sönke Ludwig
a52d064c9e
Add multicast constant definitions for Solaris.
2017-09-26 15:45:51 +02:00
Sönke Ludwig
fc6c18faad
Add missing default parameter.
2017-09-23 15:00:46 +02:00
The Dlang Bot
100bd2c491
Merge pull request #24 from vibe-d/multicast_if
...
Add an interface_index argument to joinMulticastGroup.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2017-09-11 14:11:21 +02:00
Sönke Ludwig
28e1a83057
Add an interface_index argument to joinMulticastGroup.
2017-09-11 13:35:34 +02:00
Sönke Ludwig
8b95e9fb2d
Don't allow winapi driver builds to fail.
2017-09-05 15:23:34 +02:00
Sönke Ludwig
bada4d701f
Fix linker error for LDC/Windows.
2017-09-05 15:09:06 +02:00
The Dlang Bot
28cfef2e2c
Merge pull request #22 from vibe-d/udp_multicast
...
Add basic UDP multicast support.
merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
2017-09-03 18:18:11 +02:00
Sönke Ludwig
06c6e0a4ca
Add basic UDP multicast support.
...
This also adds a new setOption method to handle boolean socket options in a generic way.
2017-09-03 18:14:57 +02:00
Sönke Ludwig
166ccfe861
Update compiler support list.
2017-09-02 18:11:45 +02:00
Sönke Ludwig
07baa0f612
Improve performance of accepting incoming connections.
...
- Removes the accept() loop, as that doesn't measurably improve performance in practice. This also gives each connection the possibility to perform initial I/O before more concurrency is generated by accepting the next connection.
- Uses SOCK_NONBLOCK in conjunction with socket() and accept4() to save one additional syscall per connection.
2017-09-02 15:40:07 +02:00
Sönke Ludwig
fc5df2f949
Use level-triggered events for listening stream sockets.
...
The limit of 20 accepted connections per event invocation can otherwise lead to no more connections being accepted when more that 20 connections are available at a time. This is an adaptation of @Boris-Barboris pull request #21 to restrict the level triggered behavior to listening sockets. See also #20 .
2017-09-02 00:12:58 +02:00
Sönke Ludwig
eb595ef858
Fix always calling GC.addRange in ChoppedVector if necessary.
2017-08-26 22:33:00 +02:00
Sönke Ludwig
74352a9ac5
Avoid dangling socket slot access in the WinAPI driver.
...
When the last reference got released while a blocking socket operation was still in progress, the old slot was still accessed from the completion callback, leading to null pointer accesses or other issues.
2017-08-21 21:02:13 +02:00
Sönke Ludwig
44b43e8415
Fix error message.
2017-08-14 15:14:05 +02:00
Sönke Ludwig
a63907b9f7
Fix multiple bugs in ThreadedFileEventDriver.
...
- Errors were reported as "ok"
- The cancel state logic was flawed and could lose cancel requests
- Operations could be removed from the active sets before they actually finished, causing the callback to never get called
2017-08-14 01:58:42 +02:00
Sönke Ludwig
dd873ec6cf
Add example to get(Local/Remove)Address and fix some ddoc syntax errors.
2017-08-12 21:25:27 +02:00
Sönke Ludwig
ee09a4068e
Merge pull request #19 from vibe-d/latest_compilers
...
Test latest compilers
2017-07-21 22:57:49 +02:00
Sönke Ludwig
8bf3773f5a
Merge pull request #18 from vibe-d/timer_opt
...
Use a linked list for the timer queue.
2017-07-21 21:55:00 +02:00
Sönke Ludwig
607fc2b04e
Update compiler list in README.
2017-07-21 21:44:15 +02:00
Sönke Ludwig
8f88adb53a
Test DMD 2.075.0 and drop 2.070.x frontend support.
2017-07-21 21:43:40 +02:00
Sönke Ludwig
09a67149bc
Use a linked list for the timer queue.
...
Improves insertion and deletion times for many pending timers considerably.
2017-07-21 21:35:10 +02:00
Sönke Ludwig
beef9c2567
Add a doubly linked list implementation.
2017-07-21 21:35:10 +02:00
Sönke Ludwig
1c666a0191
Fix send() return value handling.
...
A value of 0 doesn't indicate a closed connection as for recv().
2017-07-19 10:42:33 +02:00
Sönke Ludwig
9518ec4dce
Remove log noise for listening TCP sockets.
2017-07-14 12:35:17 +02:00
Sönke Ludwig
db28d6e6c9
Merge pull request #14 from vibe-d/windows_udp
...
Implement basic UDP support for the WinAPI driver.
2017-06-27 01:05:13 +02:00
Sönke Ludwig
077c643e08
Fix 64-bit compile error.
2017-06-27 00:54:32 +02:00
Sönke Ludwig
c55eeaf476
Update development status table.
2017-06-26 23:41:38 +02:00
Sönke Ludwig
a7e5b49943
Implement basic UDP support for the WinAPI driver.
...
Note that the IOMode.immediate semantics are not compatible with the current 0-udp.d test and will instead call the callback asynchronously. It appears that non-blocking semantics are generally not possible with overlapped sockets.
2017-06-26 23:37:33 +02:00
Sönke Ludwig
a263637bd3
Fix WSASend/WSARecv usage w.r.t. WSABUF parameter.
...
The documentation states that the buffer must be kept alive during the whole operation, so using a stack allocated buffer is illegal.
2017-06-26 23:31:22 +02:00
Sönke Ludwig
ef065762b3
Fix WinAPIEventDriverCore.waiterCount to include pending timers.
2017-06-26 23:28:15 +02:00
Sönke Ludwig
afd8b59952
Fix compiler test list.
2017-06-25 00:47:49 +02:00
Sönke Ludwig
5b48154e7b
Update tested compiler versions.
2017-06-24 23:24:15 +02:00
Sönke Ludwig
f3c9157705
Merge pull request #12 from vibe-d/winsock
...
Add Windows TCP socket support
2017-06-24 23:20:52 +02:00
Sönke Ludwig
3a41cfbefe
Mention Windows TCP support in README.md.
2017-06-24 22:31:16 +02:00
Sönke Ludwig
ca11fdec82
Implement WinAPI based TCP socket support.
2017-06-24 22:31:16 +02:00
Sönke Ludwig
ab796477e2
Move .userData to the socket driver.
...
Generally each FD type should have its own .userData property in the respective driver. This is important for drivers that don't have a unified file descriptor space and need to store user data in a type specific way.
2017-06-24 22:01:32 +02:00
Sönke Ludwig
b31e91359f
Remove "adopting file descriptors" open question.
2017-06-10 10:57:48 +02:00
Sönke Ludwig
68e8fcb21d
Merge pull request #11 from vibe-d/waiter_count
...
Fix automatic exiting of the event loop/waiter count tracking
2017-06-10 10:52:23 +02:00
Sönke Ludwig
b20dd9b398
Adjust all tests to rely on automatic event loop exiting.
2017-06-10 10:28:16 +02:00
Sönke Ludwig
d99eb1be34
Fix waiter count tracking in the Posix driver. Fixes #8 .
2017-06-10 10:27:55 +02:00
Sönke Ludwig
abf8587078
Add SmallIntegerSet.empty.
2017-06-10 10:27:20 +02:00
Sönke Ludwig
13a0adb967
Add a minimal test for #8 .
2017-06-10 10:21:47 +02:00
Sönke Ludwig
8e385d8b1d
Fix epoll status event masks. Fixes #10 .
2017-06-10 00:06:45 +02:00
Sönke Ludwig
1ff3d00020
Check return value of eventfd for errors.
2017-06-10 00:06:45 +02:00