Giter Site home page Giter Site logo

Comments (3)

jcorporation avatar jcorporation commented on May 30, 2024 1

@jcorporation Jürgen, can you please check #2720 ? (In both scenarios) Thank you !

It's a pleasure for me to confirm that this patch fixes both scenarios!

from mongoose.

scaprile avatar scaprile commented on May 30, 2024

@jcorporation Jürgen, can you please check #2720 ? (In both scenarios) Thank you !

@cpq : I think we've been going back and forth with two corner cases. Using "blame" I can see we've been using mg_tls_pending(), then resorted to c->rtls.len and then back to mg_tls_pending().
I think there are two corner cases here:

  • Msg is very short and gets sent along with the headers. mg_tls_pending() returns 0 as it has no data, BUT c->rtls.len > 0 as there is outstanding data after parsing headers. That is #2603 , we fixed it but broke the next scenario
  • Msg is of such a length that a whole block, or a group of them, fit the transfer. c->rtls.len is zero, BUT mg_tls_pending() will indicate it has a block to process. That seems to be #2619, its fix goes back to how things were before, causing a regression on the former scenario.

I merged both, and IIRC we've been there before, I remember some chat when we discussed whether both were necessary or not. I think this is real life answering us both.

from mongoose.

cpq avatar cpq commented on May 30, 2024

@scaprile thank you Sergio, makes sense!

from mongoose.

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.