httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58437] mod_h2: h2c doesn't work using upgrade from http 1.1
Date Wed, 30 Sep 2015 11:57:28 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58437

--- Comment #23 from Javier Gusano Martinez <javier.gusano@hpe.com> ---
(In reply to Stefan Eissing from comment #11)
> Was just about to tell you that "h2" is needed for TLS connections.
> 
> Looks good. One reason that TLS negotiation of HTTP/2 might not work is that
> ALPN support is missing in the linked openssl. In doubt, set
> 
>   LogLevel ssl:debug
>   LogLevel core:debug
> 
> and try a TLS connection. The log should give some information if ALPN was
> triggered and what protocol was negotiated.

Hi Stefan

Now Apache is using OpenSSL 1.0.2d:

curl -v --http2 http://localhost
* Rebuilt URL to: http://localhost/
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.44.0
> Accept: */*
> Connection: Upgrade, HTTP2-Settings
> Upgrade: h2c
> HTTP2-Settings: AAMAAABkAAQAAP__
>
< HTTP/1.1 101 Switching Protocols
< Upgrade: h2c
< Connection: Upgrade
* Received 101
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade:
len=27
* http2_recv: 16384 bytes buffer at 0xeb0cf0 (stream 1)
* http2_recv: returns 289 for stream 1
< HTTP/2.0 200
< date:Wed, 30 Sep 2015 11:45:30 GMT
< server:Apache/2.5.0-dev (Unix) OpenSSL/1.0.2d PHP/5.6.13
< last-modified:Wed, 30 Sep 2015 10:02:27 GMT
< etag:"2d-520f4071f7f05"
< accept-ranges:bytes
< content-length:45
< content-type:text/html


But continues without HTTP2 support when I use https://

Inside error log file I have found this:

[Wed Sep 30 10:16:32.942716 2015] [mpm_event:notice] [pid 14226:tid
140086991066944] AH00489: Apache/2.5.0-dev (Unix) PHP/5.6.13 configured --
resuming normal operations
[Wed Sep 30 10:16:32.942779 2015] [core:notice] [pid 14226:tid 140086991066944]
AH00094: Command line: '/home/sysadmin/apache2.5/bin/httpd'
[Wed Sep 30 10:24:27.603303 2015] [mpm_event:notice] [pid 14226:tid
140086991066944] AH00494: SIGHUP received.  Attempting to restart
AH00534: httpd: Configuration error: The MPM cannot be changed during restart.
[Wed Sep 30 10:25:27.885133 2015] [ssl:warn] [pid 14497] AH01873: Init: Session
Cache is not configured [hint: SSLSessionCache]
[Wed Sep 30 10:25:27.889499 2015] [core:warn] [pid 14497] AH00098: pid file
/home/sysadmin/apache2.5/logs/httpd.pid overwritten -- Unclean shutdown of
previous Apache run?
[Wed Sep 30 10:25:27.890866 2015] [mpm_prefork:notice] [pid 14497] AH00163:
Apache/2.5.0-dev (Unix) OpenSSL/1.0.1f PHP/5.6.13 configured -- resuming normal
operations
[Wed Sep 30 10:25:27.890900 2015] [core:notice] [pid 14497] AH00094: Command
line: '/home/sysadmin/apache2.5/bin/httpd'
[Wed Sep 30 10:32:06.312202 2015] [mpm_prefork:notice] [pid 14497] AH00169:
caught SIGTERM, shutting down
[Wed Sep 30 11:22:14.503739 2015] [ssl:warn] [pid 26718] AH01873: Init: Session
Cache is not configured [hint: SSLSessionCache]
[Wed Sep 30 11:22:14.508693 2015] [mpm_prefork:notice] [pid 26718] AH00163:
Apache/2.5.0-dev (Unix) OpenSSL/1.0.2d PHP/5.6.13 configured -- resuming normal
operations
[Wed Sep 30 11:22:14.508727 2015] [core:notice] [pid 26718] AH00094: Command
line: '/home/sysadmin/apache2.5/bin/httpd'
[Wed Sep 30 11:31:42.169607 2015] [mpm_prefork:notice] [pid 26718] AH00169:
caught SIGTERM, shutting down
[Wed Sep 30 11:35:09.698121 2015] [ssl:warn] [pid 11518] AH01873: Init: Session
Cache is not configured [hint: SSLSessionCache]
[Wed Sep 30 11:35:09.704063 2015] [mpm_prefork:notice] [pid 11518] AH00163:
Apache/2.5.0-dev (Unix) OpenSSL/1.0.2d PHP/5.6.13 configured -- resuming normal
operations
[Wed Sep 30 11:35:09.704096 2015] [core:notice] [pid 11518] AH00094: Command
line: '/home/sysadmin/apache2.5/bin/httpd'
[Wed Sep 30 11:44:32.406140 2015] [mpm_prefork:notice] [pid 11518] AH00173:
SIGHUP received.  Attempting to restart
[Wed Sep 30 11:44:32.417233 2015] [ssl:warn] [pid 11518] AH01873: Init: Session
Cache is not configured [hint: SSLSessionCache]
[Wed Sep 30 11:44:32.417248 2015] [ssl:info] [pid 11518] AH01887: Init:
Initializing (virtual) servers for SSL
[Wed Sep 30 11:44:32.418064 2015] [ssl:info] [pid 11518] AH01876:
mod_ssl/2.5.0-dev compiled against Server: Apache/2.5.0-dev, Library:
OpenSSL/1.0.1f
[Wed Sep 30 11:44:32.422386 2015] [mpm_prefork:notice] [pid 11518] AH00163:
Apache/2.5.0-dev (Unix) OpenSSL/1.0.2d PHP/5.6.13 configured -- resuming normal
operations
[Wed Sep 30 11:44:32.422406 2015] [core:notice] [pid 11518] AH00094: Command
line: '/home/sysadmin/apache2.5/bin/httpd'
[Wed Sep 30 11:44:32.422410 2015] [core:debug] [pid 11518] log.c(1497):
AH02639: Using SO_REUSEPORT: yes (1)


It looks that Apache is using OpenSSL 1.0.1f library... I don't understand
why...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message