diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-07-03 13:33:45 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-03 13:33:45 +0200 |
commit | 7c0c79812075459765440ca26bad56f4f7ddbe52 (patch) | |
tree | 2d1aa3dd7dbb1dcff8664708bc535d3dae4f2585 /src/config.hpp | |
parent | de3838403b9a35e7131aae23519ced1f11a3e03c (diff) |
Command are now stored in ypipes instead of in socketpairs
Storing commands in OS socket buffers caused whole lot of
problems when free space in the buffer ran out. This patch
stores commands in ypipes instead and uses socketpair just
to signal the other thread, ie. at most one byte is stored
in the socketpair at any single instant.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/config.hpp')
-rw-r--r-- | src/config.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp index dff3f87..3984fcf 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -36,6 +36,9 @@ namespace zmq // memory allocation by approximately 99.6% message_pipe_granularity = 256, + // Commands in pipe per allocation event. + command_pipe_granularity = 16, + // Size in bytes of the largest message that is still copied around // rather than being reference-counted. max_vsm_size = 29, |