@@ -45,6 +45,7 @@ namespace proxyfmu::client
4545
4646const int max_retries = 600 ;
4747const int retry_interval = 500 ;
48+ const int MAX_FRAME_SIZE = 50 * 1024 * 1024 ;
4849
4950proxy_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