http2: more stream-oriented data, stream ID 0 is for connections

This commit is contained in:
Daniel Stenberg
2015-04-29 15:21:45 +02:00
parent 2c238ea1fc
commit 84c6b6561f
4 changed files with 31 additions and 25 deletions

View File

@@ -317,8 +317,7 @@ static int data_pending(const struct connectdata *conn)
TRUE. The thing is if we read everything, then http2_recv won't
be called and we cannot signal the HTTP/2 stream has closed. As
a workaround, we return nonzero here to call http2_recv. */
((conn->handler->protocol&PROTO_FAMILY_HTTP) && conn->httpversion == 20 &&
conn->proto.httpc.closed);
((conn->handler->protocol&PROTO_FAMILY_HTTP) && conn->httpversion == 20);
#else
Curl_ssl_data_pending(conn, FIRSTSOCKET);
#endif