Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:49:12+00:00 2026-06-11T15:49:12+00:00

I have a website running behind a Varnish proxy. Any connection open for server-sent

  • 0

I have a website running behind a Varnish proxy. Any connection open for server-sent events never gets any content and never closes. Varnish seems to wait for the content stream to end before forwarding that content to the browser. And it keeps the connection open to the server until the content ends. Both of those issues are incompatible with server-sent events.

How can I configure Varnish to flush content immediately to the browser and close its connection to the server when the browser closes its connection?

Or can I dynamically instruct Varnish to act entirely as a pass-through for connections as if it weren’t even there? I can run the exact same web application on non-proxied systems with no problems. And I can’t completely bypass Varnish in this setup (e.g. different port).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:49:14+00:00Added an answer on June 11, 2026 at 3:49 pm

    Have you tried to return pipe in vcl_recv ?

    From the documentation :

    Pipe can be returned from vcl_recv as well. Pipe short circuits the client and the backend connections and Varnish will just sit there
    and shuffle bytes back and forth. Varnish will not look at the data
    being send back and forth – so your logs will be incomplete. Beware
    that with HTTP 1.1 a client can send several requests on the same
    connection and so you should instruct Varnish to add a “Connection:
    close” header before actually returning pipe.

    Don’t miss that you have to return pipe only for SSE incoming requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that is running on a server. I want to get
I have a server and a website running 100% fine. The thing is, I
I have a ASP.NET 3.5 website running on Windows Server 2003 and I'm using
I have this ASP.NET/SQLServer2005 website running on a production server (Win2003, QuadCore, 4GB). The
I have a website running on a Windows 2008 R2 server, using a SQL
I have a website running on an Amazon EC2 Linux server, and everything works
I have a website running on FreeBSD server. Users can visit this website and
I have a Windows Server 2003 and asp.net website running on localhost. I have
I have a website running on a remote server, and want to get some
I have a website running on a NAS server and I also have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.