Browse Source

Always fragment upload data, this fixes some cases when upload must be fragmented, but download test shown no fragmentation requirement

pull/2/head
Alibek Omarov 7 years ago
parent
commit
ebe3a203ba
  1. 3
      engine/client/cl_main.c
  2. 2
      engine/common/net_ws.c

3
engine/client/cl_main.c

@ -199,7 +199,7 @@ int CL_GetFragmentSize( void *unused ) @@ -199,7 +199,7 @@ int CL_GetFragmentSize( void *unused )
if( Netchan_IsLocal( &cls.netchan ))
return FRAGMENT_LOCAL_SIZE;
return bound( FRAGMENT_MIN_SIZE, cl_dlmax->value, FRAGMENT_MAX_SIZE );
return FRAGMENT_MIN_SIZE;
}
/*
@ -1060,6 +1060,7 @@ void CL_CheckForResend( void ) @@ -1060,6 +1060,7 @@ void CL_CheckForResend( void )
if( adr.port == 0 ) adr.port = MSG_BigShort( PORT_SERVER );
Msg( "%i\n", cls.connect_retry );
if( cls.connect_retry == CL_TEST_RETRIES_NORESPONCE )
{
// too many fails use default connection method

2
engine/common/net_ws.c

@ -1377,7 +1377,7 @@ int NET_SendLong( netsrc_t sock, int net_socket, const char *buf, int len, int f @@ -1377,7 +1377,7 @@ int NET_SendLong( netsrc_t sock, int net_socket, const char *buf, int len, int f
total_sent += size;
len -= size;
packet_number++;
Sleep( 1 );
Sys_Sleep( 1 );
}
return total_sent;

Loading…
Cancel
Save