Skip to content

Socket connection hangs on Linux when buffers aren't read fully before closing connection #20707

@aviviadi

Description

@aviviadi

On windows 10 works perfectly. On ubuntu16 hangs every time. dotnet 1.0.0-preview2-1-003177

command to reproduce (every time) at the following links :

dotnet test src/FastTests -class FastTests.Server.OAuth.CanAuthenticate -verbose

At first I used WebSocket and the connection hanged. Repro every time at:
ravendb/ravendb@1990e41

While thinking this is a websocket problem, I changed the code to use http requests, but it still hangs in the same way. Only when I drains the buffers it passes:
ravendb/ravendb@d8f4aec

The last commit needed only in Linux. In windows it works fine.

My suspect is websocket disconnections timeouts and hangs on linux are related to the above bug, and solving it for http requests will help also with websockets.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions