You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public boolisDataPending(Duration timeout = 0.seconds) {
staticSocketSet readSet;
if(readSet isnull)
readSet = newSocketSet();
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.
The text was updated successfully, but these errors were encountered:
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(...)
.arsd/http2.d
Lines 4655 to 4658 in f98b5e1
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: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.The text was updated successfully, but these errors were encountered: