Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
07271b8f
Commit
07271b8f
authored
Jul 21, 2017
by
Federico G. Schwindt
Committed by
Pål Hermunn Johansen
Aug 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Both Upgrade and Connection headers are needed now
Related to #2337 and #2366.
parent
32fceb3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vcl-example-websockets.rst
doc/sphinx/users-guide/vcl-example-websockets.rst
+2
-1
No files found.
doc/sphinx/users-guide/vcl-example-websockets.rst
View file @
07271b8f
...
...
@@ -6,7 +6,7 @@ WebSockets is a technology for creating a bidirectional stream-based
channel over HTTP.
To run WebSockets through Varnish you need to pipe the request and copy
the Upgrade
header
as follows::
the Upgrade
and Connection headers
as follows::
sub vcl_recv {
if (req.http.upgrade ~ "(?i)websocket") {
...
...
@@ -17,5 +17,6 @@ the Upgrade header as follows::
sub vcl_pipe {
if (req.http.upgrade) {
set bereq.http.upgrade = req.http.upgrade;
set bereq.http.connection = req.http.connection;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment