-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCTP connections between Docker containers hangs #784
Comments
Tried a different distro just in case, and it's the same issue... Here: fedora:30 with java-11-openjdk installed via dnf
|
Little more info: If I run the server in a container as normal and run SctpClient locally on the host (towards the server container) via: If I run the client in a container and run SctpServer locally on the host via: If I run both SctpClient and SctpServer on the host, everything works fine. I've also tried using ncat instead of Java to act as an sctp server and sctp client. That showed the same issue. To use ncat instead of my Java application: |
Anyone? I don't think SCTP connections can go out of a docker container. |
Well that's interesting. If I comment out publishing of the ports from docker-compose.yml, SCTP between containers works fine. I don't think this works the same if it were TCP. Unexpected behavior? |
I can confirm it. With exposed sctp port connection hangs after INIT_ACK, without port it goes as expected, in the attachment you can see pcap dump for both cases with the same tools. |
Expected behavior
After starting up the containers with docker-compose (or just docker run, individually), I expect the server container to listen for incoming connections on sctp port 3868, the client container to initiate a connection to the server container on the same port, and for the server container to accept the connection.
Actual behavior
The server container comes up and waits for connections as expected and the client initiates the connection as expected, but the server never accepts the connection and the client blocks indefinitely.
Steps to reproduce the behavior
src/SctpClient.java
src/SctpServer.java
docker-compose.yml
Dockerfile-Client
Dockerfile-Server
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
I am running this a Fedora 30 Workstation VMWare Guest. Also here's the version of docker-compose. Older versions may not allow sctp in service..ports section.
The text was updated successfully, but these errors were encountered: