eousphoros / mod-spdy

OpenSSL 1.0.2 and Apache 2.4.12 port for mod-spdy
Other
79 stars 23 forks source link

Tested for 2.4.10? #15

Closed v998 closed 10 years ago

v998 commented 10 years ago

I have tried installing this mod-spdy on apache 2.4.10, but spdy doesn't work and log messages are showing

[Tue Aug 12 03:10:39.591619 2014] [spdy:warn] [pid 30271] [client 64.41.200.103:56215] [mod_spdy/0.9.4.1-20ce121] [30271:30271:WARNING:mod_spdy.cc(437)] NPN didn't happen during SSL handshake.  You're probably using a version of mod_ssl that doesn't support NPN. Without NPN support, the server cannot use SPDY. See http://code.google.com/p/mod-spdy/wiki/GettingStarted for more information on installing a version of mod_spdy with NPN support.

First I thought it was because of event MPM, but these days I could use worker mpm and prefork mpm. However, they are still making this error.

Then I used Apache 2.4.7, no error, I can use SPDY, no such errors.

It appears that the NPN patch for mod_ssl in apache 2.4.10 are having problems, in ssllabs test it shows

Next Protocol Negotiation     Yes

But NPN seems not working.

Has anyone run this mod-spdy on apache 2.4.10 successfully? (because it seems eousphoros is still using 2.4.7)

eousphoros commented 10 years ago

You will get that under 2.4.7. You can't use mod_php. Try mod_fcgid

v998 commented 10 years ago

sorry, I pasted a wrong one... I tried mod_php, FastCGI and php-fpm under 2.4.10, but no luck :( That should be:

[Tue Aug 12 03:10:39.591619 2014] [spdy:warn] [pid 30271] [client 64.41.200.103:56215] [mod_spdy/0.9.4.1-20ce121] [30271:30271:WARNING:mod_spdy.cc(437)] NPN didn't happen during SSL handshake.  You're probably using a version of mod_ssl that doesn't support NPN. Without NPN support, the server cannot use SPDY. See http://code.google.com/p/mod-spdy/wiki/GettingStarted for more information on installing a version of mod_spdy with NPN support.

Then I turn to 2.4.7, all things got worked. in fact, i could use spdy in mod_php environment (but NOT 2.4.10), but scripts would break

eousphoros commented 10 years ago

Alright, looks like I have enough work here to take a break from backing on android. I'll spend a bit of time setting up a 2.4.10 environment and get blck.io back on spdy. Thank you for the heads up.

main-- commented 10 years ago

This problem seems to appear because the NPN API was redesigned. The patch in the 2.4.10 branch contains the new version while mod_spdy is written for the old version. So mod_spdy doesn't find the (old) NPN API and tells you that your mod_ssl doesn't support NPN.

ghostwheel42 commented 10 years ago

I've patched mod_spdy.cc to use the new NPN API.

v998 commented 10 years ago

@ghostwheel42 , Thanks, I tried, and that really worked... Hopes @eousphoros will merge that soon.

eousphoros commented 10 years ago

@ghostwheel42 You rock, thank you for being on the ball.

eousphoros commented 10 years ago

Pull request has been merged. If this fixes your issue please close. :)