File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,9 @@ struct asio_helpers
87
87
if (!ec)
88
88
{
89
89
// Last attempt was successful. Get the actual value set.
90
- int32_t max_value = static_cast <int32_t >(initial_buffer_value);
91
90
BufferOptionType option;
92
91
socket.get_option (option, ec);
93
- if (!ec && (option.value () >= value_to_set) && (option. value () <= max_value) )
92
+ if (!ec && (option.value () >= value_to_set))
94
93
{
95
94
final_buffer_value = option.value ();
96
95
return true ;
Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ test_UDPv4Transport::test_UDPv4Transport(
59
59
60
60
test_transport_options->test_UDPv4Transport_DropLogLength = 0 ;
61
61
test_transport_options->test_UDPv4Transport_ShutdownAllNetwork = false ;
62
- UDPv4Transport::mSendBufferSize = descriptor.sendBufferSize ;
63
- UDPv4Transport::mReceiveBufferSize = descriptor.receiveBufferSize ;
62
+ UDPv4Transport::configuration_.sendBufferSize = descriptor.sendBufferSize ;
63
+ UDPv4Transport::configuration_.receiveBufferSize = descriptor.receiveBufferSize ;
64
+ UDPv4Transport::configuration_.maxMessageSize = descriptor.maxMessageSize ;
64
65
for (auto interf : descriptor.interfaceWhiteList )
65
66
{
66
67
UDPv4Transport::interface_whitelist_.emplace_back (asio::ip::make_address_v4 (interf));
Original file line number Diff line number Diff line change @@ -796,12 +796,8 @@ void sample_lost_test_dr_init(
796
796
PubSubReader<T>& reader,
797
797
std::function<void (const eprosima::fastdds::dds::SampleLostStatus& status)> functor)
798
798
{
799
- auto udp_transport = std::make_shared<UDPv4TransportDescriptor>();
800
- udp_transport->sendBufferSize = SAMPLE_LOST_TEST_BUFFER_SIZE;
801
- udp_transport->receiveBufferSize = SAMPLE_LOST_TEST_BUFFER_SIZE;
802
799
803
- reader.disable_builtin_transport ()
804
- .add_user_transport_to_pparams (udp_transport)
800
+ reader.socket_buffer_size (SAMPLE_LOST_TEST_BUFFER_SIZE)
805
801
.sample_lost_status_functor (functor)
806
802
.init ();
807
803
@@ -814,9 +810,6 @@ void sample_lost_test_init(
814
810
PubSubWriter<T>& writer,
815
811
std::function<void (const eprosima::fastdds::dds::SampleLostStatus& status)> functor)
816
812
{
817
- reader.socket_buffer_size (SAMPLE_LOST_TEST_BUFFER_SIZE);
818
- writer.socket_buffer_size (SAMPLE_LOST_TEST_BUFFER_SIZE);
819
-
820
813
sample_lost_test_dw_init (writer);
821
814
sample_lost_test_dr_init (reader, functor);
822
815
You can’t perform that action at this time.
0 commit comments