Code Monkey home page Code Monkey logo

Comments (5)

ftence avatar ftence commented on June 20, 2024

By default the maximum number of connection is limited to 1. Would you need to increase the number of parallel connections, you should specify maxConnections in your Map. I tested with 10 and it works as you expect.

There is however a bug where the server sockets accepts a connection and does not immediately close it although the ThreadPoolExecutor is out of threads. This can be seen with the second netcat you start.

As for the timeout, I see no issue according to my tests: I allowed a single connection, connected with netcat and killed it (-9). Another netcat could connect and send data, so I think we're good. If you find a issue with physical disconnection, I will do further testing.

from warp10-platform.

pi-r-p avatar pi-r-p commented on June 20, 2024

I did a few more tests with maxConnections and real life cable disconnection:

Each new disconnect/reconnect, a new port is opened.

netstat | grep 4242                
tcp6       0      0 pi55:4242               pi102:54982             ESTABLISHED
tcp6       0      0 pi55:4242               pi102:50344             ESTABLISHED
tcp6       0      0 pi55:4242               pi102:62213             ESTABLISHED
tcp6       0      0 pi55:4242               pi102:62389             ESTABLISHED
tcp6       0      0 pi55:4242               pi102:52907             ESTABLISHED

(only one is really established, but anyway, the maxConnections now allows the communication to recover)

I will test the patch.

from warp10-platform.

pi-r-p avatar pi-r-p commented on June 20, 2024

8 hours later,
all the connexions remains ESTABLISHED (should be CLOSED_WAIT).

from warp10-platform.

hbs avatar hbs commented on June 20, 2024

Is this issue fixed by an already merged PR?

from warp10-platform.

pi-r-p avatar pi-r-p commented on June 20, 2024

yes, it is.

from warp10-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.