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

Support full 100-Continue behavior in jdk.httpserver

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      The current partial support for 100 Continue is that if an Expect: 100-Continue header was sent in the request we automatically prepend the final response with the 100 Continue before the filters/handlers are called. This is obviously not helpful for code that really wants to do 100 continue the way it was intended. The sequence would normally be (for example):

      Request. ---------------------------------->
            Content-Length: 10000000
            Expect: 100 Continue
      Interim response <---------------------- 100 Continue
      Request body ----------------------------->
      FInal response headers <-----------------------
      Response body <---------------------------

      This can be resolved by moving the logic of autosending 100 to when the inputstream is actually read by the handler/filters


            michaelm Michael McMahon
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: