Jetty

Jetty does not return response after empty chunked request

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.3rc1
  • Fix Version/s: 6.1.7
  • Component/s: HTTP
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

Send empty chunked request such:

"GET /R1 HTTP/1.1\n"+
"Host: localhost\n"+
"Transfer-Encoding: chunked\n"+
"Content-Type: text/plain\n"+
"\015\012"+
"0;\015\012\015\012"

This cause Jetty does not call servlet and does not return response.

Can be verified in HttpConnectionTest:
....
response=connector.getResponses("GET /R1 HTTP/1.1\n"+
"Host: localhost\n"+
"Transfer-Encoding: chunked\n"+
"Content-Type: text/plain\n"+
"\015\012"+
"0\015\012\015\012");

Activity

Hide
Greg Wilkins added a comment -

This is due to the delayed handling mechanism in Jetty.

A fix has been committed and a release will be following shortly.

thanks!

Show
Greg Wilkins added a comment - This is due to the delayed handling mechanism in Jetty. A fix has been committed and a release will be following shortly. thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: