You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2020/04/20 17:54:17 UTC

[GitHub] [tomcat] arkanovicz commented on issue #277: Filter invalid HTTP 2.0 headers from response

arkanovicz commented on issue #277:
URL: https://github.com/apache/tomcat/pull/277#issuecomment-616714936


   @michael-o curl example:
   
       $ curl --http2 -Nv "https://some.http2.url/"
       *   Trying 127.0.0.1:8833...
       * TCP_NODELAY set
       * Connected to some.http2.url (127.0.0.1) port 8833 (#0)
       > GET / HTTP/1.1
       > Host: some.http2.url:8833
       > User-Agent: curl/7.65.3
       > Connection: Upgrade, HTTP2-Settings
       > Upgrade: h2c
       > HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
       > Accept:text/plain
       > 
       * Mark bundle as not supporting multiuse
       < HTTP/1.1 101 
       < Connection: Upgrade
       < Upgrade: h2c
       < Date: Mon, 20 Apr 2020 17:48:26 GMT
       * 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=15
       * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
       * http2 error: Invalid HTTP header field was received: frame type: 1, stream: 1, name: [connection], value: [keep-alive]
       * HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
       * stopped the pause stream!
       * Connection #0 to host some.http2.url left intact
       curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
   
   Safari will display the following error in the javascript console:
   
       [Error] Failed to load resource: The operation couldnt be completed. Protocol error
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org