Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
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
pistache
Commits
68525577
Commit
68525577
authored
Jul 10, 2019
by
Ian Roddis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing close on open fd
parent
d6a2ff62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
src/common/http.cc
src/common/http.cc
+0
-13
No files found.
src/common/http.cc
View file @
68525577
...
...
@@ -651,13 +651,6 @@ ResponseWriter::putOnWire(const char* data, size_t len)
OUT
(
writeHeaders
(
headers_
,
buf_
));
OUT
(
writeCookies
(
cookies_
,
buf_
));
auto
connection
=
headers_
.
tryGet
<
Header
::
Connection
>
();
auto
control
=
ConnectionControl
::
Close
;
if
(
connection
)
control
=
connection
->
control
();
/* @Todo @Major:
* Correctly handle non-keep alive requests
* Do not put Keep-Alive if version == Http::11 and request.keepAlive == true
...
...
@@ -689,12 +682,6 @@ ResponseWriter::putOnWire(const char* data, size_t len)
[
=
](
int
/*l*/
)
{
return
Async
::
Promise
<
ssize_t
>
(
[
=
](
Async
::
Deferred
<
ssize_t
>
/*deferred*/
)
mutable
{
if
(
control
==
ConnectionControl
::
KeepAlive
)
return
;
if
(
fd
)
close
(
fd
);
return
;
}
);
},
...
...
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