Commit graph

605 commits

Author SHA1 Message Date
Sönke Ludwig 9e6436fce3 Add test for issue #1429.
UDP receive timeout doesn't work for the libevent driver.

(cherry picked from commit 443e0713ded4d2eaf5e9bc6c24ed79069d2a92dd)

(cherry picked from commit 6997dc304c2d09511c409bd18f847bac330a06a3)
2016-04-10 14:40:39 +02:00
Sönke Ludwig 8f66cc9827 Add test for issue #1441.
(cherry picked from commit ac11197a4b0af00833114ec400df2bca07e874e3)
2016-04-10 14:40:38 +02:00
Sönke Ludwig 3a6583b375 Explictly avoid double-resumption of tasks during Libevent2TCPConnection.close().
The previous fix for #1376 resulted in a possible task starvation when the peer reset the connection before the outbound buffer was drained. The new approach now always resumes the waiting task exactly once, no matter how many events happen and no matter in which order.

(cherry picked from commit 350130a2b05cfbf12764ffaa6a86403eacf172d9)
2016-04-10 14:40:38 +02:00
Martin Nowak dc9002de0e make splitting of log lines configurable
- it might make sense to have newlines in a log message
  (e.g. when printing a backtrace) and they shouldn't
  be split into multiple log messages, e.g. when using syslog
- the splitting was fixed to work with more than one LF

(cherry picked from commit d14ce3dea1b98227dcd116acc6b175c56d9a1fb0)
2016-04-10 14:40:38 +02:00
Sönke Ludwig 7e2d1dd038 Initial commit.
The library is able to support simple TCP servers in the current state. The API is still mostly compatible with mainline vibe.d, but the driver systen has been replaced by the eventcore library and sockets/files/timers/... are now structs with automatic reference counting instead of GC collected classes. The stream interfaces have been removed for now.
2016-03-01 20:30:42 +01:00