Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions components/rtps/src/communication/EsppTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ EsppTransport::Channel *EsppTransport::createChannel(Ip4Port_t receivePort, bool
// large (fragmented) sample is not dropped before the reactor drains it.
// Best-effort: some stacks clamp SO_RCVBUF, so failure is ignored. Only
// compiled when fragmentation is enabled (never on the ESP32 default build).
{
int rcvbuf = 4 * 1024 * 1024; // request 4 MB (kernel may clamp)
::setsockopt(channel.socket->native_handle(), SOL_SOCKET, SO_RCVBUF,
reinterpret_cast<const char *>(&rcvbuf), sizeof(rcvbuf));
}
(void)channel.socket->set_receive_buffer_size(4 * 1024 * 1024); // request 4 MB (kernel may clamp)
Comment thread
finger563 marked this conversation as resolved.
#endif

if (!allow_reuse && !channel.socket->disable_reuse()) {
Expand Down