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
d2689f41
Commit
d2689f41
authored
Nov 14, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More work-arounds.
parent
38505ceb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
serialize-async-test.c++
c++/src/capnp/serialize-async-test.c++
+6
-3
No files found.
c++/src/capnp/serialize-async-test.c++
View file @
d2689f41
...
...
@@ -99,9 +99,12 @@ protected:
// Note: OSX reports ENOTCONN if we also try to shutdown(fds[1], SHUT_RD).
// Request that the buffer size be as small as possible, to force the event loop to kick in.
uint
zero
=
0
;
KJ_SYSCALL
(
setsockopt
(
fds
[
0
],
SOL_SOCKET
,
SO_RCVBUF
,
&
zero
,
sizeof
(
zero
)));
KJ_SYSCALL
(
setsockopt
(
fds
[
1
],
SOL_SOCKET
,
SO_SNDBUF
,
&
zero
,
sizeof
(
zero
)));
// The kernel will round this up. We use 1 instead of 0 because OSX reports EINVAL for 0 and
// Cygwin will apparently actually use a buffer size of 0 and therefore blocks forever waiting
// for buffer space.
uint
one
=
1
;
KJ_SYSCALL
(
setsockopt
(
fds
[
0
],
SOL_SOCKET
,
SO_RCVBUF
,
&
one
,
sizeof
(
one
)));
KJ_SYSCALL
(
setsockopt
(
fds
[
1
],
SOL_SOCKET
,
SO_SNDBUF
,
&
one
,
sizeof
(
one
)));
}
~
SerializeAsyncTest
()
{
close
(
fds
[
0
]);
...
...
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