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
0c4e26fd
Commit
0c4e26fd
authored
Sep 02, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-339' of
https://github.com/LPardue/nghttp2
into LPardue-issue-339
parents
e1f7643c
3002674b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
src/h2load.cc
src/h2load.cc
+16
-11
No files found.
src/h2load.cc
View file @
0c4e26fd
...
...
@@ -1164,9 +1164,14 @@ void read_script_from_file(std::istream &infile,
char
*
end
;
auto
v
=
std
::
strtod
(
start
,
&
end
);
if
(
end
==
start
||
errno
!=
0
)
{
errno
=
0
;
if
(
v
<
0.0
||
!
std
::
isfinite
(
v
)
||
end
==
start
||
errno
!=
0
)
{
auto
error
=
errno
;
std
::
cerr
<<
"Time value error at line "
<<
line_count
<<
".
\n\t
"
<<
script_line
.
substr
(
0
,
pos
)
<<
std
::
endl
;
<<
"value = "
<<
script_line
.
substr
(
0
,
pos
)
<<
std
::
endl
;
if
(
error
!=
0
)
{
std
::
cerr
<<
"
\t
"
<<
strerror
(
error
)
<<
std
::
endl
;
}
exit
(
EXIT_FAILURE
);
}
...
...
@@ -1295,15 +1300,15 @@ Options:
Path of a file containing one or more lines separated by
EOLs. Each script line is composed of two tab-separated
fields. The first field represents the time offset from
the
start of execution, expressed as milliseconds with
mi
crosecond resolution. The second field represents the
URI. This option will disable URIs getting from
command-line. If '-' is given as <PATH>, script lines
will be read from stdin. Script lines are used in order
for each client. If -n is given, it must be less than
or equal to the number of script lines, larger values are
clamped to the number of script lines. If -n is
not given, the number of requests will default to
the
the
start of execution, expressed as a positive value of
mi
lliseconds with microsecond resolution. The second
field represents the URI. This option will disable URIs
getting from command-line. If '-' is given as <PATH>,
script lines will be read from stdin. Script lines are
used in order for each client. If -n is given, it must be
less than or equal to the number of script lines, larger
values are clamped to the number of script lines. If -n
is not given, the number of requests will default to
the
number of script lines. The scheme, host and port defined
in the first URI are used solely. Values contained in
other URIs, if present, are ignored. Definition of a
...
...
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