Skip to content

Commit a3aea07

Browse files
committed
Refs #22974. Only override buffer sizes when they are 0.
Signed-off-by: Miguel Company <[email protected]>
1 parent a020c1d commit a3aea07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/rtps/attributes/RTPSParticipantAttributes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ void RTPSParticipantAttributes::setup_transports(
351351
}
352352
bool intraprocess_only = is_intraprocess_only(*this);
353353

354-
sendSocketBufferSize = options.sockets_buffer_size;
355-
listenSocketBufferSize = options.sockets_buffer_size;
354+
sendSocketBufferSize = (sendSocketBufferSize == 0) ? options.sockets_buffer_size : sendSocketBufferSize;
355+
listenSocketBufferSize = (listenSocketBufferSize == 0) ? options.sockets_buffer_size : listenSocketBufferSize;
356356

357357
switch (transports)
358358
{

0 commit comments

Comments
 (0)