Commit ad87266a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Merge branch 'h2load_r_C' of https://github.com/nshoemaker/nghttp2 into nshoemaker-h2load_r_C

parents ac301537 d326e28c
This diff is collapsed.
...@@ -57,6 +57,7 @@ using namespace nghttp2; ...@@ -57,6 +57,7 @@ using namespace nghttp2;
namespace h2load { namespace h2load {
class Session; class Session;
struct Worker;
struct Config { struct Config {
std::vector<std::vector<nghttp2_nv>> nva; std::vector<std::vector<nghttp2_nv>> nva;
...@@ -76,6 +77,10 @@ struct Config { ...@@ -76,6 +77,10 @@ struct Config {
ssize_t max_concurrent_streams; ssize_t max_concurrent_streams;
size_t window_bits; size_t window_bits;
size_t connection_window_bits; size_t connection_window_bits;
// rate at which connections should be made
ssize_t rate;
// number of connections made
ssize_t nconns;
enum { PROTO_HTTP2, PROTO_SPDY2, PROTO_SPDY3, PROTO_SPDY3_1 } no_tls_proto; enum { PROTO_HTTP2, PROTO_SPDY2, PROTO_SPDY3, PROTO_SPDY3_1 } no_tls_proto;
// file descriptor for upload data // file descriptor for upload data
int data_fd; int data_fd;
...@@ -83,8 +88,17 @@ struct Config { ...@@ -83,8 +88,17 @@ struct Config {
uint16_t default_port; uint16_t default_port;
bool verbose; bool verbose;
ssize_t current_worker;
std::vector<std::unique_ptr<Worker>> workers;
SSL_CTX *ssl_ctx;
struct ev_loop *rate_loop;
ssize_t seconds;
ssize_t conns_remainder;
Config(); Config();
~Config(); ~Config();
bool is_rate_mode();
}; };
struct RequestStat { struct RequestStat {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment