Skip to content

Strange bug that leads to Unix.ECONNREFUSED #68

Open
@tobiasBora

Description

@tobiasBora

Hello,

First thank you for the library. However I'm having some bugs I cannot explain. I manage to make it work between a python server and an ocaml client, but when the ocaml client tries to connect to the well known wscat (sudo apt-get install node-ws) which is run as a server with :

/usr/bin/wscat --listen 8889

I got an error from the client side:

Exception: Unix.Unix_error (Unix.ECONNREFUSED, "connect", "").

The code I'm running is the wscat installed by opam (I also tried to compile it by myself, and the bug stay the same). I checked with netcat the opened port and I find the 8889:

$netstat --listen | grep 8889
tcp        0      0 0.0.0.0:8889            0.0.0.0:*               LISTEN  

Also, I tried to connect to the node wscat using both a node wscat client and a python client running websocket, and both can connect to the server, so it's indeed a bug.

Do you know what could be the reason of such a bug ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions