mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
bugfix: incorrect buffer size config
This commit is contained in:
parent
e4e88ad1db
commit
65d91b8681
|
@ -119,6 +119,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
client.SetProperty(FairMQExampleClient::OutputSocketType, "req", 0);
|
client.SetProperty(FairMQExampleClient::OutputSocketType, "req", 0);
|
||||||
client.SetProperty(FairMQExampleClient::OutputSndBufSize, 10000, 0);
|
client.SetProperty(FairMQExampleClient::OutputSndBufSize, 10000, 0);
|
||||||
|
client.SetProperty(FairMQExampleClient::OutputRcvBufSize, 10000, 0);
|
||||||
client.SetProperty(FairMQExampleClient::OutputMethod, "connect", 0);
|
client.SetProperty(FairMQExampleClient::OutputMethod, "connect", 0);
|
||||||
client.SetProperty(FairMQExampleClient::OutputAddress, "tcp://localhost:5005", 0);
|
client.SetProperty(FairMQExampleClient::OutputAddress, "tcp://localhost:5005", 0);
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
server.SetProperty(FairMQExampleServer::InputSocketType, "rep", 0);
|
server.SetProperty(FairMQExampleServer::InputSocketType, "rep", 0);
|
||||||
server.SetProperty(FairMQExampleServer::InputSndBufSize, 10000, 0);
|
server.SetProperty(FairMQExampleServer::InputSndBufSize, 10000, 0);
|
||||||
|
server.SetProperty(FairMQExampleServer::InputRcvBufSize, 10000, 0);
|
||||||
server.SetProperty(FairMQExampleServer::InputMethod, "bind", 0);
|
server.SetProperty(FairMQExampleServer::InputMethod, "bind", 0);
|
||||||
server.SetProperty(FairMQExampleServer::InputAddress, "tcp://*:5005", 0);
|
server.SetProperty(FairMQExampleServer::InputAddress, "tcp://*:5005", 0);
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ int main(int argc, char** argv)
|
||||||
sink.ChangeState(FairMQBinSink::INIT);
|
sink.ChangeState(FairMQBinSink::INIT);
|
||||||
|
|
||||||
sink.SetProperty(FairMQBinSink::InputSocketType, options.inputSocketType);
|
sink.SetProperty(FairMQBinSink::InputSocketType, options.inputSocketType);
|
||||||
sink.SetProperty(FairMQBinSink::InputSndBufSize, options.inputBufSize);
|
sink.SetProperty(FairMQBinSink::InputRcvBufSize, options.inputBufSize);
|
||||||
sink.SetProperty(FairMQBinSink::InputMethod, options.inputMethod);
|
sink.SetProperty(FairMQBinSink::InputMethod, options.inputMethod);
|
||||||
sink.SetProperty(FairMQBinSink::InputAddress, options.inputAddress);
|
sink.SetProperty(FairMQBinSink::InputAddress, options.inputAddress);
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ int main(int argc, char** argv)
|
||||||
buffer.ChangeState(FairMQBuffer::INIT);
|
buffer.ChangeState(FairMQBuffer::INIT);
|
||||||
|
|
||||||
buffer.SetProperty(FairMQBuffer::InputSocketType, options.inputSocketType);
|
buffer.SetProperty(FairMQBuffer::InputSocketType, options.inputSocketType);
|
||||||
buffer.SetProperty(FairMQBuffer::InputSndBufSize, options.inputBufSize);
|
buffer.SetProperty(FairMQBuffer::InputRcvBufSize, options.inputBufSize);
|
||||||
buffer.SetProperty(FairMQBuffer::InputMethod, options.inputMethod);
|
buffer.SetProperty(FairMQBuffer::InputMethod, options.inputMethod);
|
||||||
buffer.SetProperty(FairMQBuffer::InputAddress, options.inputAddress);
|
buffer.SetProperty(FairMQBuffer::InputAddress, options.inputAddress);
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ int main(int argc, char** argv)
|
||||||
sink.ChangeState(FairMQProtoSink::INIT);
|
sink.ChangeState(FairMQProtoSink::INIT);
|
||||||
|
|
||||||
sink.SetProperty(FairMQProtoSink::InputSocketType, options.inputSocketType);
|
sink.SetProperty(FairMQProtoSink::InputSocketType, options.inputSocketType);
|
||||||
sink.SetProperty(FairMQProtoSink::InputSndBufSize, options.inputBufSize);
|
sink.SetProperty(FairMQProtoSink::InputRcvBufSize, options.inputBufSize);
|
||||||
sink.SetProperty(FairMQProtoSink::InputMethod, options.inputMethod);
|
sink.SetProperty(FairMQProtoSink::InputMethod, options.inputMethod);
|
||||||
sink.SetProperty(FairMQProtoSink::InputAddress, options.inputAddress);
|
sink.SetProperty(FairMQProtoSink::InputAddress, options.inputAddress);
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ int main(int argc, char** argv)
|
||||||
proxy.ChangeState(FairMQProxy::INIT);
|
proxy.ChangeState(FairMQProxy::INIT);
|
||||||
|
|
||||||
proxy.SetProperty(FairMQProxy::InputSocketType, options.inputSocketType);
|
proxy.SetProperty(FairMQProxy::InputSocketType, options.inputSocketType);
|
||||||
proxy.SetProperty(FairMQProxy::InputSndBufSize, options.inputBufSize);
|
proxy.SetProperty(FairMQProxy::InputRcvBufSize, options.inputBufSize);
|
||||||
proxy.SetProperty(FairMQProxy::InputMethod, options.inputMethod);
|
proxy.SetProperty(FairMQProxy::InputMethod, options.inputMethod);
|
||||||
proxy.SetProperty(FairMQProxy::InputAddress, options.inputAddress);
|
proxy.SetProperty(FairMQProxy::InputAddress, options.inputAddress);
|
||||||
|
|
||||||
|
|
|
@ -169,14 +169,14 @@ int main(int argc, char** argv)
|
||||||
splitter.ChangeState(FairMQSplitter::INIT);
|
splitter.ChangeState(FairMQSplitter::INIT);
|
||||||
|
|
||||||
splitter.SetProperty(FairMQSplitter::InputSocketType, options.inputSocketType);
|
splitter.SetProperty(FairMQSplitter::InputSocketType, options.inputSocketType);
|
||||||
splitter.SetProperty(FairMQSplitter::InputSndBufSize, options.inputBufSize);
|
splitter.SetProperty(FairMQSplitter::InputRcvBufSize, options.inputBufSize);
|
||||||
splitter.SetProperty(FairMQSplitter::InputMethod, options.inputMethod);
|
splitter.SetProperty(FairMQSplitter::InputMethod, options.inputMethod);
|
||||||
splitter.SetProperty(FairMQSplitter::InputAddress, options.inputAddress);
|
splitter.SetProperty(FairMQSplitter::InputAddress, options.inputAddress);
|
||||||
|
|
||||||
for (int i = 0; i < options.numOutputs; ++i)
|
for (int i = 0; i < options.numOutputs; ++i)
|
||||||
{
|
{
|
||||||
splitter.SetProperty(FairMQSplitter::OutputSocketType, options.outputSocketType.at(i), i);
|
splitter.SetProperty(FairMQSplitter::OutputSocketType, options.outputSocketType.at(i), i);
|
||||||
splitter.SetProperty(FairMQSplitter::OutputRcvBufSize, options.outputBufSize.at(i), i);
|
splitter.SetProperty(FairMQSplitter::OutputSndBufSize, options.outputBufSize.at(i), i);
|
||||||
splitter.SetProperty(FairMQSplitter::OutputMethod, options.outputMethod.at(i), i);
|
splitter.SetProperty(FairMQSplitter::OutputMethod, options.outputMethod.at(i), i);
|
||||||
splitter.SetProperty(FairMQSplitter::OutputAddress, options.outputAddress.at(i), i);
|
splitter.SetProperty(FairMQSplitter::OutputAddress, options.outputAddress.at(i), i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user