Improved connection stability with slow connections.

This commit is contained in:
Pauli Nieminen 2008-05-11 23:04:26 +00:00
parent bfc34be48e
commit 736cf32e8a
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ Version 1.4.2+svn:
* fixed issues with campaign info in non-compressed saved games
(bug #11386)
* Backported gracefull restart feature to server
* Improved connection stability with slow connections.
* fixed an alignement issue which caused a SIGBUS on a Sparc
(debian bug #426318)
* added some includes to fix compilation problems with Sun Studio 12

View file

@ -181,7 +181,7 @@ int receive_bytes(TCPsocket s, char* buf, size_t nbytes)
}
bool receive_with_timeout(TCPsocket s, char* buf, size_t nbytes,
bool update_stats=false, int timeout_ms=10000)
bool update_stats=false, int timeout_ms=60000)
{
int startTicks = SDL_GetTicks();
int time_used = 0;