Coder Social home page Coder Social logo

Verify socket closure about http HOT 5 CLOSED

httprb avatar httprb commented on June 19, 2024
Verify socket closure

from http.

Comments (5)

tarcieri avatar tarcieri commented on June 19, 2024

Can anyone still reproduce this problem?

@schmurfy you perhaps?

from http.

tarcieri avatar tarcieri commented on June 19, 2024

I don't see #close getting called anywhere, so I'm going to go out on a limb and say this is still a problem

from http.

schmurfy avatar schmurfy commented on June 19, 2024

I will give it a try but I am not sure what caused the issue in the first place :/
The only condition I managed to isolate was the response from the server included:

Transfer-Encoding: chunked

I was also doing hundreds of requests in parallel using Celluloid::IO and I don't think each requests kept the connection open... The number of requests does not seems to change much, on the test server the issue was the same with half the load.

I am not sure how useful the informations are at least that's a start xD

from http.

tarcieri avatar tarcieri commented on June 19, 2024

It looks like we need to call @socket.close in #finish_response, however #finish_response isn't being called reliably

from http.

ixti avatar ixti commented on June 19, 2024

This was addressed in #115

from http.

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.