Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
ad87266a
Commit
ad87266a
authored
Jul 19, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'h2load_r_C' of
https://github.com/nshoemaker/nghttp2
into nshoemaker-h2load_r_C
parents
ac301537
d326e28c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
36 deletions
+210
-36
src/h2load.cc
src/h2load.cc
+196
-36
src/h2load.h
src/h2load.h
+14
-0
No files found.
src/h2load.cc
View file @
ad87266a
This diff is collapsed.
Click to expand it.
src/h2load.h
View file @
ad87266a
...
...
@@ -57,6 +57,7 @@ using namespace nghttp2;
namespace
h2load
{
class
Session
;
struct
Worker
;
struct
Config
{
std
::
vector
<
std
::
vector
<
nghttp2_nv
>>
nva
;
...
...
@@ -76,6 +77,10 @@ struct Config {
ssize_t
max_concurrent_streams
;
size_t
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
;
// file descriptor for upload data
int
data_fd
;
...
...
@@ -83,8 +88,17 @@ struct Config {
uint16_t
default_port
;
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
();
bool
is_rate_mode
();
};
struct
RequestStat
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment