Skip to content

Commit 118740f

Browse files
committed
Update
1 parent d8ae84c commit 118740f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/proxyfmu/client/proxy_slave.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ namespace proxyfmu::client
4545

4646
const int max_retries = 600;
4747
const int retry_interval = 500;
48+
const int MAX_FRAME_SIZE = 50 * 1024 * 1024;
4849

4950
proxy_slave::proxy_slave(const filesystem::path& fmuPath, const std::string& instanceName, fmi::model_description modelDescription, const std::optional<remote_info>& remote)
5051
: modelDescription_(std::move(modelDescription))
@@ -62,8 +63,7 @@ proxy_slave::proxy_slave(const filesystem::path& fmuPath, const std::string& ins
6263
} else {
6364
host = remote->host();
6465
std::shared_ptr<TTransport> socket(new TSocket(host, remote->port()));
65-
auto transport = std::make_shared<TFramedTransport>(socket);
66-
transport->setMaxFrameSize(50 * 1024 * 1024);
66+
auto transport = std::make_shared<TFramedTransport>(socket, MAX_FRAME_SIZE);
6767
std::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
6868
auto client = std::make_shared<BootServiceClient>(protocol);
6969

@@ -95,7 +95,7 @@ proxy_slave::proxy_slave(const filesystem::path& fmuPath, const std::string& ins
9595
}
9696

9797
std::shared_ptr<TTransport> socket(new TSocket(host, port));
98-
transport_ = std::make_shared<TFramedTransport>(socket);
98+
transport_ = std::make_shared<TFramedTransport>(socket, MAX_FRAME_SIZE);
9999
std::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport_));
100100
client_ = std::make_shared<FmuServiceClient>(protocol);
101101
transport_->open();

0 commit comments

Comments
 (0)