[haiku-bugs] [Haiku] #11687: BHttpRequest retrying a POST/PUT request should reuse the same stream data

  • From: "puckipedia" <trac@xxxxxxxxxxxx>
  • Date: Fri, 02 Jan 2015 09:49:05 -0000

#11687: BHttpRequest retrying a POST/PUT request should reuse the same stream 
data
------------------------------+------------------------------
 Reporter:  puckipedia        |        Owner:  axeld
     Type:  bug               |       Status:  new
 Priority:  normal            |    Milestone:  R1
Component:  Kits/Network Kit  |      Version:  R1/Development
 Keywords:                    |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+------------------------------
 Now, when e.g. a `Location:` header or a 401 response is gotten and
 `BHttpRequest` retries the request, it doesn't reuse the written bytes
 from previous request, but reads the same amount again, possibly resulting
 in crashes or unwanted data being sent to the server. This could be fixed
 either by using `BPositionIO`, or caching the data internally.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11687>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: