mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:33:36 +03:00
- Eric Wong's patch:
This allows curl(1) to be used as a client-side tunnel for arbitrary stream protocols by abusing chunked transfer encoding in both the HTTP request and HTTP response. This requires server support for sending a response while a request is still being read, of course. If attempting to read from stdin returns EAGAIN, then we pause our sender. This leaves curl to attempt to read from the socket while reading from stdin (and thus sending) is paused.
This commit is contained in:
parent
7ae624e700
commit
4b6d3a2bfd
3 changed files with 46 additions and 2 deletions
15
CHANGES
15
CHANGES
|
|
@ -6,6 +6,21 @@
|
|||
|
||||
Changelog
|
||||
|
||||
Daniel Stenberg (15 Jun 2009)
|
||||
- Eric Wong's patch:
|
||||
|
||||
This allows curl(1) to be used as a client-side tunnel for arbitrary stream
|
||||
protocols by abusing chunked transfer encoding in both the HTTP request and
|
||||
HTTP response. This requires server support for sending a response while a
|
||||
request is still being read, of course.
|
||||
|
||||
If attempting to read from stdin returns EAGAIN, then we pause our sender.
|
||||
This leaves curl to attempt to read from the socket while reading from stdin
|
||||
(and thus sending) is paused.
|
||||
|
||||
This change was needed to allow successfully tunneling the git protocol over
|
||||
HTTP (--no-buffer is needed, as well).
|
||||
|
||||
Patrick Monnerat (15 Jun 2009)
|
||||
- Replaced use of standard C library rand()/srand() by our own pseudo-random
|
||||
number generator.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue