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
2952706b
Commit
2952706b
authored
Jun 10, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scan-build error
parent
9b0ccdef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
src/h2load.cc
src/h2load.cc
+1
-0
src/http2.cc
src/http2.cc
+2
-2
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+2
-0
No files found.
src/h2load.cc
View file @
2952706b
...
@@ -801,6 +801,7 @@ TimeStat<Duration> compute_time_stat(const std::vector<Duration> &samples) {
...
@@ -801,6 +801,7 @@ TimeStat<Duration> compute_time_stat(const std::vector<Duration> &samples) {
a
=
na
;
a
=
na
;
}
}
assert
(
n
>
0
);
res
.
mean
=
Duration
(
sum
/
n
);
res
.
mean
=
Duration
(
sum
/
n
);
res
.
sd
=
Duration
(
static_cast
<
typename
Duration
::
rep
>
(
sqrt
(
q
/
n
)));
res
.
sd
=
Duration
(
static_cast
<
typename
Duration
::
rep
>
(
sqrt
(
q
/
n
)));
res
.
within_sd
=
within_sd
(
samples
,
res
.
mean
,
res
.
sd
);
res
.
within_sd
=
within_sd
(
samples
,
res
.
mean
,
res
.
sd
);
...
...
src/http2.cc
View file @
2952706b
...
@@ -832,7 +832,7 @@ parse_next_link_header_once(const char *first, const char *last) {
...
@@ -832,7 +832,7 @@ parse_next_link_header_once(const char *first, const char *last) {
static
constexpr
size_t
PLLEN
=
sizeof
(
PL
)
-
1
;
static
constexpr
size_t
PLLEN
=
sizeof
(
PL
)
-
1
;
if
(
first
+
PLLEN
==
last
)
{
if
(
first
+
PLLEN
==
last
)
{
if
(
std
::
equal
(
PL
,
PL
+
PLLEN
,
first
,
util
::
CaseCmp
()))
{
if
(
std
::
equal
(
PL
,
PL
+
PLLEN
,
first
,
util
::
CaseCmp
()))
{
ok
=
true
;
//
ok = true;
// this is the end of sequence
// this is the end of sequence
return
{{{
url_first
,
url_last
}},
last
};
return
{{{
url_first
,
url_last
}},
last
};
}
}
...
@@ -842,7 +842,7 @@ parse_next_link_header_once(const char *first, const char *last) {
...
@@ -842,7 +842,7 @@ parse_next_link_header_once(const char *first, const char *last) {
if
(
!
std
::
equal
(
PL
,
PL
+
PLLEN
,
first
,
util
::
CaseCmp
()))
{
if
(
!
std
::
equal
(
PL
,
PL
+
PLLEN
,
first
,
util
::
CaseCmp
()))
{
break
;
break
;
}
}
ok
=
true
;
//
ok = true;
// skip including ','
// skip including ','
first
+=
PLLEN
+
1
;
first
+=
PLLEN
+
1
;
return
{{{
url_first
,
url_last
}},
first
};
return
{{{
url_first
,
url_last
}},
first
};
...
...
src/shrpx_spdy_upstream.cc
View file @
2952706b
...
@@ -167,6 +167,8 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
...
@@ -167,6 +167,8 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
size_t
header_buffer
=
0
;
size_t
header_buffer
=
0
;
for
(
size_t
i
=
0
;
nv
[
i
];
i
+=
2
)
{
for
(
size_t
i
=
0
;
nv
[
i
];
i
+=
2
)
{
++
num_headers
;
++
num_headers
;
// shut up scan-build
assert
(
nv
[
i
+
1
]);
header_buffer
+=
strlen
(
nv
[
i
])
+
strlen
(
nv
[
i
+
1
]);
header_buffer
+=
strlen
(
nv
[
i
])
+
strlen
(
nv
[
i
+
1
]);
}
}
...
...
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