From ab263488b00622b94e4644ea432c8185d58501c6 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 11 Mar 2011 09:33:58 -0800 Subject: usrp2: bump up timeout on mtu discovery (seen to be a bit too small on windows vbox) --- host/lib/usrp/usrp2/usrp2_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 14b26410d..cb4d793ab 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -169,7 +169,7 @@ static mtu_result_t determine_mtu(const std::string &addr){ //require that buffering to be used internally, and this is a safe setting. boost::uint8_t buffer[2000]; usrp2_ctrl_data_t *ctrl_data = reinterpret_cast(buffer); - static const double echo_timeout = 0.010; //10 ms + static const double echo_timeout = 0.020; //20 ms size_t min_recv_mtu = sizeof(usrp2_ctrl_data_t), max_recv_mtu = sizeof(buffer); size_t min_send_mtu = sizeof(usrp2_ctrl_data_t), max_send_mtu = sizeof(buffer); -- cgit v1.2.3