ref: 6b42532ddf1b3ebfd1c5b9b369f8478a7d8711ea
parent: 2dae34046c10ad0d59d3a9f056cd133a49ce091b
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Aug 26 13:03:34 EDT 2017
We were computing the poll delay wrong.
--- a/lib/std/resolve+posixy.myr
+++ b/lib/std/resolve+posixy.myr
@@ -333,7 +333,7 @@
pfd = [
[.fd=srv, .events=sys.Pollin, .revents=0]
][:]
- r = sys.poll(pfd[:], (std.now() - giveup : int)/1000)
+ r = sys.poll(pfd[:], (giveup - std.now() : int)/1000)
if r < 0
-> `Err `Badconn
elif r == 0