summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-18 14:01:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 15:41:43 +0200
commit897a7b3a13138468fb8bb98b8d54cdd5eef7ae9d (patch)
tree3ad61135f916f0203877c12a798dfbb674d72c1b /lib/http.h
parent155b1f5df9b772e861da2b72aafd8342013b76a2 (diff)
downloadcurl-897a7b3a13138468fb8bb98b8d54cdd5eef7ae9d.tar.gz
http2: store upload state per stream
Use a curl_off_t for upload left
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/http.h b/lib/http.h
index e8014409b..cb861e2e5 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -171,6 +171,10 @@ struct HTTP {
char *mem; /* points to a buffer in memory to store received data */
size_t len; /* size of the buffer 'mem' points to */
size_t memlen; /* size of data copied to mem */
+
+ const uint8_t *upload_mem; /* points to a buffer to read from */
+ size_t upload_len; /* size of the buffer 'upload_mem' points to */
+ curl_off_t upload_left; /* number of bytes left to upload */
};
typedef int (*sending)(void); /* Curl_send */
@@ -199,9 +203,6 @@ struct http_conn {
nghttp2_session_mem_recv() but mem buffer is still not full. In
this case, we wrongly sends the content of mem buffer if we share
them for both cases. */
- const uint8_t *upload_mem; /* points to a buffer to read from */
- size_t upload_len; /* size of the buffer 'upload_mem' points to */
- size_t upload_left; /* number of bytes left to upload */
int32_t pause_stream_id; /* stream ID which paused
nghttp2_session_mem_recv */