Daniel Stenberg
811443754a
CURLOPT_PIPEWAIT: added
...
By setting this option to 1 libcurl will wait for a connection to reveal
if it is possible to pipeline/multiplex on before it continues.
2015-05-18 09:33:47 +02:00
Daniel Stenberg
df3a970cb4
Curl_http_readwrite_headers: minor code simplification
2015-05-18 09:33:47 +02:00
Daniel Stenberg
193251794a
IsPipeliningPossible: fixed for http2
2015-05-18 09:33:47 +02:00
Daniel Stenberg
8b38fcf2f6
http2: bump the h2 buffer size to 32K for speed
2015-05-18 09:33:47 +02:00
Daniel Stenberg
5871affc7a
http2: remove the stream from the hash in stream_close callback
...
... and suddenly things work much better!
2015-05-18 09:33:47 +02:00
Daniel Stenberg
3e8a5d88a5
http2: if there is paused data, do not clear the drain field
2015-05-18 09:33:47 +02:00
Daniel Stenberg
522ca8c035
http2: rename s/data/pausedata
2015-05-18 09:33:47 +02:00
Daniel Stenberg
a66ed407d2
http2: "stream %x" in all outputs to make it easier to search for
2015-05-18 09:33:47 +02:00
Daniel Stenberg
61a94d6f77
http2: Curl_expire() all handles with incoming traffic
...
... so that they'll get handled next in the multi loop.
2015-05-18 09:33:47 +02:00
Daniel Stenberg
56c362b1a7
http2: don't signal settings change for same values
2015-05-18 09:33:47 +02:00
Daniel Stenberg
72105ebf05
http2: set default concurrency, fix ConnectionExists for multiplex
2015-05-18 09:33:47 +02:00
Daniel Stenberg
38bd6bf0bb
bundles: store no/default/pipeline/multiplex
...
to allow code to act differently on the situation.
Also added some more info message for the connection re-use function to
make it clearer when connections are not re-used.
2015-05-18 09:33:36 +02:00
Daniel Stenberg
be4c8fd1ef
http2: lazy init header_recvbuf
...
It makes us use less memory when not doing HTTP/2 and subsequently also
makes us not have to cleanup HTTP/2 related data when not using HTTP/2!
2015-05-18 08:57:18 +02:00
Daniel Stenberg
783b3c7b42
http2: separate multiplex/pipelining + cleanup memory leaks
2015-05-18 08:57:18 +02:00
Daniel Stenberg
02ec1ced9b
CURLMOPT_PIPELINE: bit 1 is for multiplexing
2015-05-18 08:57:18 +02:00
Tatsuhiro Tsujikawa
2ce2f03007
http2: Fix bug that data to be drained are overwritten by pending "paused" data
2015-05-18 08:57:18 +02:00
Tatsuhiro Tsujikawa
d722138f29
http2: Don't call nghttp2_session_mem_recv while it is paused by a stream
2015-05-18 08:57:18 +02:00
Tatsuhiro Tsujikawa
0dc0de0351
http2: Read data left in connection buffer after pause
...
Previously when we do pause because of out of buffer, we just throw
away unread data in connection buffer. This just broke protocol
framing, and I saw occasional FRAME_SIZE_ERROR. This commit fix this
issue by remembering how much data read, and in the next iteration, we
process remaining data.
2015-05-18 08:57:18 +02:00
Tatsuhiro Tsujikawa
d261652d42
http2: Fix streams get stuck
...
This commit fixes the bug that streams get stuck if stream gets some
DATA, and stream->closed becomes true at the same time. Previously,
in this condition, after we processed DATA, we are going to try to
read data from underlying transport, but there is no data, and gets
EAGAIN. There was no code path to evaludate stream->closed.
2015-05-18 08:57:18 +02:00
Daniel Stenberg
74a4bd5ecd
http2: store incoming h2 SETTINGS
2015-05-18 08:57:18 +02:00
Daniel Stenberg
591a6933da
pipeline: move function to pipeline.c and make static
...
... as it was only used from there.
2015-05-18 08:57:18 +02:00
Daniel Stenberg
e91aedd840
IsPipeliningPossible: http2 can always "pipeline" (multiplex)
2015-05-18 08:57:18 +02:00
Daniel Stenberg
ee3ad233a2
http2: remove debug logging from on_frame_recv
2015-05-18 08:57:18 +02:00
Daniel Stenberg
70b5b698b0
http2: remove the closed check in http2_recv
...
With the "drained" functionality we can get here slightly asynchronously
so the stream have have been closed but there is pending data left to
read.
2015-05-18 08:57:18 +02:00
Daniel Stenberg
a28734be09
http2: bump the h2 buffer to 8K
2015-05-18 08:57:18 +02:00
Daniel Stenberg
5252f13dfa
http2: Curl_read should not use the single buffer
...
... as it does for pipelining when we're multiplexing, as we need the
different buffers to store incoming data correctly for all streams.
2015-05-18 08:57:18 +02:00
Daniel Stenberg
153f940198
http2: more debug outputs
2015-05-18 08:57:18 +02:00
Daniel Stenberg
f4b8b39881
http2: leave WAITPERFORM when conn is multiplexed
...
No need to wait for our "spot" like for pipelining
2015-05-18 08:57:18 +02:00
Daniel Stenberg
01e1bdb10c
http2: force "drainage" of streams
...
... which is necessary since the socket won't be readable but there is
data waiting in the buffer.
2015-05-18 08:57:17 +02:00
Daniel Stenberg
7bbac214f5
http2: move the mem+len pair to the stream struct
2015-05-18 08:57:17 +02:00
Daniel Stenberg
84c6b6561f
http2: more stream-oriented data, stream ID 0 is for connections
2015-05-18 08:57:17 +02:00
Daniel Stenberg
2c238ea1fc
http2: move lots of state data to the 'stream' struct
...
... from the connection struct. The stream one being the 'struct HTTP'
which is kept in the SessionHandle struct (easy handle).
lookup streams for incoming frames in the stream hash, hashing is based
on the stream id and we get the SessionHandle for the incoming stream
that way.
2015-05-18 08:57:17 +02:00
Daniel Stenberg
5fe71975e4
HTTP: partial start at fixing up hash-lookups on http2 frame receival
2015-05-18 08:57:17 +02:00
Daniel Stenberg
77f1029ecd
http: a stream hash for h2 multiplexing
2015-05-18 08:57:17 +02:00
Daniel Stenberg
7957d2eb92
http: a stream hash for h2 multiplexing
2015-05-18 08:57:17 +02:00
Daniel Stenberg
47caff7bdf
http2: debug log when receiving unexpected stream_id
2015-05-18 08:54:54 +02:00
Daniel Stenberg
d6440d7366
http2: move stream_id to the HTTP struct (per-stream)
2015-05-18 08:54:54 +02:00
Daniel Stenberg
f858624052
Curl_http2_setup: only do it once and enable multiplex on the server
...
Once we know we are HTTP/2 enabled we know the server can multiplex.
2015-05-18 08:54:54 +02:00
Daniel Stenberg
6e6b02f398
http: switch on "pipelining" (multiplexing) for HTTP/2 servers
...
... and do not blacklist any.
2015-05-18 08:54:54 +02:00
Daniel Stenberg
5fa82ca56f
README.pipelining: removed
...
All the details mentioned here are better documented in man pages
2015-05-15 22:34:12 +02:00
Dan Fandrich
1c01cee601
build: removed bundles.c from make files
...
This file was removed in commit fd137786
2015-05-14 14:55:48 +02:00
Daniel Stenberg
750d678c0e
Curl_conncache_add_conn: fix memory leak on OOM
2015-05-14 14:06:44 +02:00
Daniel Stenberg
a6af3df660
CURLMOPT_MAX_HOST_CONNECTIONS: host = host name + port number
2015-05-12 23:47:01 +02:00
Daniel Stenberg
2a746f6c28
conncache: keep bundles on host+port bases, not only host names
...
Previously we counted all connections to a specific host name and that
would be used for the CURLMOPT_MAX_HOST_CONNECTIONS check for example,
while servers on different port numbers are normally considered
different "origins" on the web and should thus be considered different
hosts.
2015-05-12 23:40:10 +02:00
Daniel Stenberg
fd137786e5
bundles: merged into conncache.c
...
All the existing Curl_bundle* functions were only ever used from within
the conncache.c file, so I moved them over and made them static (and
removed the Curl_ prefix).
2015-05-12 23:21:33 +02:00
Daniel Stenberg
b419e7ae0c
hostcache: made all host caches use structs, not pointers
...
This avoids unnecessary dynamic allocs and as this also removed the last
users of *hash_alloc() and *hash_destroy(), those two functions are now
removed.
2015-05-12 09:46:53 +02:00
Daniel Stenberg
d37e0160c2
multi: converted socket hash into non-allocated struct
...
avoids extra dynamic allocation
2015-05-12 09:28:37 +02:00
Daniel Stenberg
640296c95d
connection cache: avoid Curl_hash_alloc()
...
... by using plain structs instead of pointers for the connection cache,
we can avoid several dynamic allocations that weren't necessary.
2015-05-12 09:15:02 +02:00
Daniel Stenberg
c4d6f9163a
proxy: add newline to info message
2015-05-08 15:56:25 +02:00
Patrick Monnerat
c720cd6356
FTP: fix dangling conn->ip_addr dereference on verbose EPSV.
2015-05-08 15:28:48 +02:00