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
2482dd7f
Commit
2482dd7f
authored
Jul 13, 2015
by
Nora Shoemaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding -r and -C options to h2load
parent
1940413e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
183 additions
and
34 deletions
+183
-34
src/h2load.cc
src/h2load.cc
+170
-34
src/h2load.h
src/h2load.h
+13
-0
No files found.
src/h2load.cc
View file @
2482dd7f
This diff is collapsed.
Click to expand it.
src/h2load.h
View file @
2482dd7f
...
@@ -76,6 +76,10 @@ struct Config {
...
@@ -76,6 +76,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 +87,17 @@ struct Config {
...
@@ -83,8 +87,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
{
...
...
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