Change timeout from -1 to INT_MAX in TransportSender
This allows min() to work properly on timeouts.
This commit is contained in:
@@ -112,7 +112,7 @@ int TransportSender<MyState>::wait_time( void )
|
||||
uint64_t now = timestamp();
|
||||
|
||||
if ( !connection->get_has_remote_addr() ) {
|
||||
return -1;
|
||||
return INT_MAX;
|
||||
}
|
||||
|
||||
if ( next_wakeup > now ) {
|
||||
|
||||
Reference in New Issue
Block a user