HttpServer does not accept long Content-Length

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6u4
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: