Code Monkey home page Code Monkey logo

Comments (4)

ohwgiles avatar ohwgiles commented on July 26, 2024

Isn't this sufficient? https://github.com/ohwgiles/laminar/blob/master/src/http.cpp#L207

from laminar.

arunisaac avatar arunisaac commented on July 26, 2024

Ah, maybe I understand what's happening now! My setup involves two layers[1] of nginx reverse proxy in front of laminar. Like this:

laminar -> nginx -> nginx -> browser

And, I had issues with SSE events going through only with these two layers of reverse proxying. Earlier, I had only a single nginx layer, and SSE events would go through fine without any special nginx configuration, not even proxy_http_version 1.1 and proxy_set_header Connection "1.1". I didn't understand why there was a problem only when I had two layers of nginx, but what you pointed out explains it. Maybe, the problem was the outer nginx buffering the inner nginx, and nothing to do with laminar.

[1]: Unusual, I know. But, not easily avoidable with the way I am running laminar inside a container.

from laminar.

arunisaac avatar arunisaac commented on July 26, 2024

I found that another way to solve the problem is to set proxy_pass_header X-Accel-Buffering on the inner nginx. Anyway, nothing to change in laminar.

Thanks, closing this issue now!

from laminar.

arunisaac avatar arunisaac commented on July 26, 2024

from laminar.

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.