Closed mdlayher closed 5 years ago
/cc @aybabtme @mxpv @pmorjan
Welp, I'm gonna need some sleep to work out the concurrency thing. It makes sense, but it makes things trickier.
Okay. I think this is ready for review. I've hit it with the race detector a few times and am not finding any more problems, so I suspect the runtime network poller and/or *os.File
are doing some synchronization on our behalf for when we Accept/Close concurrently, and etc.
As far as I can tell, this works as expected. I'm going to merge it!
A draft that should make all the runtime network poller magic work properly. I need to overhaul the tests now too.
Fixes #25.