Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6652642

HttpServer does not accept long Content-Length

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u4
    • core-libs
    • None
    • sparc
    • solaris_10

      The com.sun.net.httpserver.HttpServer listener does not accept Content-Length header with value 2147483648 (2^31) or larger. Manually telnetting to a listening server and entering this Content-Length header results in:

      <h1>400 Bad Request</h1>NumberFormatException thrownConnection to localhost closed by foreign host.

      And control is never passed to my HttpHandler code.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: