Skip to content

Commit e1b93f1

Browse files
committed
AMQPConnection: fixed bug related to incorrect timeout struct configuration (tv_usec field was not set hence it's value was undefined).
1 parent 53e0829 commit e1b93f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AMQPConnection.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ - (void)connectToHost:(NSString *)host onPort:(int)port
7474
[NSException raise:kAMQPConnectionException format:@"Out of memory"];
7575
}
7676
timeout->tv_sec = kSocketOpenTimeout;
77+
timeout->tv_usec = 0;
7778

7879
_socket = amqp_tcp_socket_new(_internalConnection);
7980
if (!_socket) {

0 commit comments

Comments
 (0)