summaryrefslogtreecommitdiffstats
path: root/src/nghttp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nghttp.h')
-rw-r--r--src/nghttp.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nghttp.h b/src/nghttp.h
index a880414..5b339e8 100644
--- a/src/nghttp.h
+++ b/src/nghttp.h
@@ -45,6 +45,7 @@
#include <ev.h>
+#define NGHTTP2_NO_SSIZE_T
#include <nghttp2/nghttp2.h>
#include "llhttp.h"
@@ -77,7 +78,7 @@ struct Config {
int64_t encoder_header_table_size;
size_t padding;
size_t max_concurrent_streams;
- ssize_t peer_max_concurrent_streams;
+ size_t peer_max_concurrent_streams;
int multiply;
// milliseconds
ev_tstamp timeout;
@@ -137,7 +138,7 @@ struct ContinueTimer {
struct Request {
// For pushed request, |uri| is empty and |u| is zero-cleared.
Request(const std::string &uri, const http_parser_url &u,
- const nghttp2_data_provider *data_prd, int64_t data_length,
+ const nghttp2_data_provider2 *data_prd, int64_t data_length,
const nghttp2_priority_spec &pri_spec, int level = 0);
~Request();
@@ -180,7 +181,7 @@ struct Request {
int64_t response_len;
nghttp2_gzip *inflater;
std::unique_ptr<HtmlParser> html_parser;
- const nghttp2_data_provider *data_prd;
+ const nghttp2_data_provider2 *data_prd;
size_t header_buffer_size;
int32_t stream_id;
int status;
@@ -246,7 +247,7 @@ struct HttpClient {
bool all_requests_processed() const;
void update_hostport();
bool add_request(const std::string &uri,
- const nghttp2_data_provider *data_prd, int64_t data_length,
+ const nghttp2_data_provider2 *data_prd, int64_t data_length,
const nghttp2_priority_spec &pri_spec, int level = 0);
void record_start_time();