mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
- Made listen backlog number a define
This commit is contained in:
@ -189,7 +189,7 @@ int net_bind( int *fd, const char *bind_ip, int port )
|
||||
return( POLARSSL_ERR_NET_BIND_FAILED );
|
||||
}
|
||||
|
||||
if( listen( *fd, 10 ) != 0 )
|
||||
if( listen( *fd, POLARSSL_NET_LISTEN_BACKLOG ) != 0 )
|
||||
{
|
||||
close( *fd );
|
||||
return( POLARSSL_ERR_NET_LISTEN_FAILED );
|
||||
|
Reference in New Issue
Block a user