Fix connection delays in the libevent2 driver. Fixes #338.
Fix connection delays in the libevent2 driver. Fixes #338.

The 4096 low write watermark caused write operations to stall when no more than 4096 bytes were sent. The current behavior with a zero watermark now has the same behavior as the libev and the win32 driver (i.e. writing all data to the socket before returning from write()). It still needs to be determined if this is relevant for benchmark results and using a higher low watermark should be fixed instead.

Additionally, the more error prone "writeFinished" field has been removed and replaced by an explicit check of the output buffer size.

DBankov/vibe.d,nathanchristenson/vibe.d,fast4shoot/vibe.d,Yoplitein/vibe.d,nathanchristenson/vibe.d,alphaKAI/vibe.d,jkm/vibe.d,nathanchristenson/vibe.d,mfrischknecht/vibe.d,alphaKAI/vibe.d,Kozzi11/vibe.d,etcimon/vibe.0,rejectedsoftware/vibe.d,sigod/vibe.d,Yoplitein/vibe.d,yannick/vibe.d,Mihail-K/vibe.d,etcimon/vibe.d,veelo/vibe.d,sigod/vibe.d,Yoplitein/vibe.d,sigod/vibe.d,etcimon/vibe.d,ColdenCullen/vibe.d,dkillebrew/vibe.d,schuetzm/vibe.d,Geod24/vibe.d,chalucha/vibe.d,gedaiu/vibe.d,AndreyMZ/vibe.d,machindertechnologies/vibe.d,redstar/vibe.d,jkm/vibe.d,alphaKAI/vibe.d,etcimon/vibe.0