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
987aa2dd
Commit
987aa2dd
authored
Jan 10, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Define max iovcnt for http1 backend write operation
parent
91b40d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/shrpx_http_downstream_connection.cc
src/shrpx_http_downstream_connection.cc
+10
-1
No files found.
src/shrpx_http_downstream_connection.cc
View file @
987aa2dd
...
...
@@ -689,14 +689,23 @@ int HttpDownstreamConnection::on_read() {
}
}
#define DEFAULT_WR_IOVCNT 16
#if defined(IOV_MAX) && IOV_MAX < DEFAULT_WR_IOVCNT
#define MAX_WR_IOVCNT IOV_MAX
#else // !defined(IOV_MAX) || IOV_MAX >= DEFAULT_WR_IOVCNT
#define MAX_WR_IOVCNT DEFAULT_WR_IOVCNT
#endif // !defined(IOV_MAX) || IOV_MAX >= DEFAULT_WR_IOVCNT
int
HttpDownstreamConnection
::
on_write
()
{
ev_timer_again
(
loop_
,
&
rt_
);
auto
upstream
=
downstream_
->
get_upstream
();
auto
input
=
downstream_
->
get_request_buf
();
struct
iovec
iov
[
MAX_WR_IOVCNT
];
while
(
input
->
rleft
()
>
0
)
{
struct
iovec
iov
[
2
];
auto
iovcnt
=
input
->
riovec
(
iov
,
util
::
array_size
(
iov
));
ssize_t
nwrite
;
...
...
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