patricmutwiri / mod-spdy

Automatically exported from code.google.com/p/mod-spdy
0 stars 0 forks source link

Enhancement: set SPDY environment variable for the cgi application #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Not an issue but it might be usefull to know if the client is connected via 
SPDY or not.
Perhaps by setting an "SPDY" environment variable to spdy version it might be 
sufficient.
Thanks for your work.
Ronan

Original issue reported on code.google.com by gronan.r...@gmail.com on 22 Feb 2012 at 4:27

GoogleCodeExporter commented 8 years ago
Ah, interesting.  mod_spdy already provides an API that other Apache modules 
can use to query whether a given client is connected via SPDY or not (and if 
so, what SPDY version), but I guess that API isn't usable by a CGI script.  
Setting an environment variable sounds like a good idea.  Thanks for the 
suggestion; I'll look into that.

Original comment by mdste...@google.com on 22 Feb 2012 at 4:43

GoogleCodeExporter commented 8 years ago

Original comment by mdste...@google.com on 22 Feb 2012 at 4:44

GoogleCodeExporter commented 8 years ago

Original comment by mdste...@google.com on 27 Feb 2012 at 8:24

GoogleCodeExporter commented 8 years ago
As of r258, mod_spdy now sets the SPDY_VERSION environment variable (for 
requests served via SPDY) to the SPDY version number being used (right now, 
that's always 2, but in the future there will be other SPDY versions).  For 
non-SPDY requests, the variable is left empty/absent.

Original comment by mdste...@google.com on 29 Feb 2012 at 5:58

GoogleCodeExporter commented 8 years ago
Wonderful

Original comment by gronan.r...@gmail.com on 29 Feb 2012 at 6:31