This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
I'm seeing that isDataPending works okay for the first WebSocket I create in a session but after I close it and create a new WebSocket one of two things happen:
Calling isDataPending with a timeout just keeps returning false immediately every time it's called
I get std.socket.SocketOSException@std\socket.d(3488): Socket select error: An operation was attempted on something that is not a socket.
If I add in a call to readSet.reset() then everything seems to work fine.
OS: Windows
The
readSet
here is static and in similar places where aSocketSet
is used there is a call toreadSet.reset()
prior to callingreadSet.add(...)
. https://github.com/adamdruppe/arsd/blob/f98b5e17d651ee815fd4ce787dac1541f1959f2d/http2.d#L4655-L4658I'm seeing that
isDataPending
works okay for the first WebSocket I create in a session but after I close it and create a new WebSocket one of two things happen:isDataPending
with a timeout just keeps returning false immediately every time it's calledstd.socket.SocketOSException@std\socket.d(3488): Socket select error: An operation was attempted on something that is not a socket.
If I add in a call to
readSet.reset()
then everything seems to work fine.