Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
f7bbbf4e
Commit
f7bbbf4e
authored
Sep 21, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix builds.
parent
2751b577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
http-test.c++
c++/src/kj/compat/http-test.c++
+3
-0
http.c++
c++/src/kj/compat/http.c++
+3
-3
No files found.
c++/src/kj/compat/http-test.c++
View file @
f7bbbf4e
...
...
@@ -2579,12 +2579,15 @@ KJ_TEST("HttpClient connection management") {
.
wait
(
io
.
waitScope
);
KJ_EXPECT
(
count
==
0
);
#if !_WIN32 // TODO(soon): Figure out why this doesn't work on Windows. Probably a bug in
// Win32IocpEventPort::poll().
// If the server times out the connection, we figure it out on the client.
doRequest
().
wait
(
io
.
waitScope
);
KJ_EXPECT
(
count
==
1
);
serverTimer
.
advanceTo
(
serverTimer
.
now
()
+
serverSettings
.
pipelineTimeout
*
2
);
io
.
waitScope
.
poll
();
KJ_EXPECT
(
count
==
0
);
#endif
// Can still make requests.
doRequest
().
wait
(
io
.
waitScope
);
...
...
c++/src/kj/compat/http.c++
View file @
f7bbbf4e
...
...
@@ -2798,7 +2798,7 @@ public:
kj
::
Maybe
<
kj
::
Own
<
AsyncOutputStream
>>
stream
;
};
class
AttachmentOutputStream
:
public
kj
::
AsyncOutputStream
{
class
AttachmentOutputStream
final
:
public
kj
::
AsyncOutputStream
{
// An AsyncOutputStream which also owns some separate object, released when the stream is freed.
public
:
...
...
@@ -2821,7 +2821,7 @@ private:
kj
::
Own
<
kj
::
Refcounted
>
attachment
;
};
class
AttachmentInputStream
:
public
kj
::
AsyncInputStream
{
class
AttachmentInputStream
final
:
public
kj
::
AsyncInputStream
{
// An AsyncInputStream which also owns some separate object, released when the stream is freed.
public
:
...
...
@@ -2921,7 +2921,7 @@ private:
std
::
deque
<
AvailableClient
>
availableClients
;
struct
RefcountedClient
:
public
kj
::
Refcounted
{
struct
RefcountedClient
final
:
public
kj
::
Refcounted
{
RefcountedClient
(
NetworkAddressHttpClient
&
parent
,
kj
::
Own
<
HttpClientImpl
>
client
)
:
parent
(
parent
),
client
(
kj
::
mv
(
client
))
{
++
parent
.
activeConnectionCount
;
...
...
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