Code Monkey home page Code Monkey logo

Comments (2)

kavon avatar kavon commented on September 18, 2024

It seems keepalives are not the reason for drops when running in Docker. Using tshark -a duration:60 -i lo > packets.txt I was able to confirm that for a 100-iteration version of the alma benchmark, somebody is sending a RST to reset the connection:

 2402 29.899311464    127.0.0.1 → 127.0.0.1    TCP 2615 35200 → 29000 [PSH, ACK] Seq=2682076 Ack=22 Win=43776 Len=2549 TSval=2027158193 TSecr=2027158193
 2403 29.943307624    127.0.0.1 → 127.0.0.1    TCP 66 29000 → 35200 [ACK] Seq=22 Ack=2684625 Win=3116928 Len=0 TSval=2027158237 TSecr=2027158193
 2404 29.943316318    127.0.0.1 → 127.0.0.1    TCP 3301 35200 → 29000 [PSH, ACK] Seq=2684625 Ack=22 Win=43776 Len=3235 TSval=2027158237 TSecr=2027158237
 2405 29.984865122    127.0.0.1 → 127.0.0.1    TCP 66 29000 → 35200 [RST, ACK] Seq=22 Ack=2687860 Win=3145728 Len=0 TSval=2027158278 TSecr=2027158237

A shortened 50-iter run ends with mutual FIN:

 1666 17.339854436    127.0.0.1 → 127.0.0.1    TCP 66 35388 → 29000 [FIN, ACK] Seq=1941362 Ack=22 Win=43776 Len=0 TSval=2027447051 TSecr=2027447000
 1667 17.387539530    127.0.0.1 → 127.0.0.1    TCP 66 29000 → 35388 [ACK] Seq=22 Ack=1941363 Win=3145600 Len=0 TSval=2027447099 TSecr=2027447051
 1668 17.991190060    127.0.0.1 → 127.0.0.1    TCP 66 29000 → 35388 [FIN, ACK] Seq=22 Ack=1941363 Win=3145600 Len=0 TSval=2027447702 TSecr=2027447051
 1669 17.991219968    127.0.0.1 → 127.0.0.1    TCP 66 35388 → 29000 [ACK] Seq=1941363 Ack=23 Win=43776 Len=0 TSval=2027447702 TSecr=2027447702

from halo.

kavon avatar kavon commented on September 18, 2024

The problem was that the server is sending RSTs because the test harness test/util/run_test.sh had a default server timeout of 30s, after which the server will stop the IO service, triggering an RST. I expected a graceful shutdown for that but oh well.

The commit fixing it reenabled keepalives on the server side and upped the harness timeout to 30mins.

from halo.

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.