Closed tschombe closed 6 years ago
I think the problem is new TimeSpan(1000)
. That's 1000 ticks, which isn't very long. Try TimeSpan.FromSeconds(1000)
or something like that.
oops, my bad I already figured that out during writing the reproduce behavior. But thanks for your response, I will close the issue
Environment
Expected behaviour
I am using a response socket and waiting for a request with
resSocket.TryRecieveMultipartBytes()
with a timeout as the first parameterI would expect the method to return after the timeout expires either with false as return code or with a timeout exception, but the method blocks indefinitely
Actual behaviour
TryRecieveMultipartBytes of responseSocket blocks even if a timeout is passed
Steps to reproduce the behaviour