Relaxed the timeout constraint a bit. Sometimes, when the server
was busy, booting failed because of that. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
#include <boot/net/UDP.h>
|
#include <boot/net/UDP.h>
|
||||||
|
|
||||||
|
|
||||||
|
static const bigtime_t kRequestTimeout = 100000LL;
|
||||||
|
|
||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
@@ -260,7 +262,7 @@ RemoteDisk::_SendRequest(UDPSocket *socket, ip_addr_t serverAddress,
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
// receive reply
|
// receive reply
|
||||||
bigtime_t timeout = system_time() + 10000LL;
|
bigtime_t timeout = system_time() + kRequestTimeout;
|
||||||
do {
|
do {
|
||||||
UDPPacket *packet;
|
UDPPacket *packet;
|
||||||
error = socket->Receive(&packet, timeout - system_time());
|
error = socket->Receive(&packet, timeout - system_time());
|
||||||
|
|||||||
Reference in New Issue
Block a user