1
0
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:
Paul Bakker
2011-05-20 12:31:31 +00:00
parent bcd5db493f
commit 192381aa89
2 changed files with 3 additions and 1 deletions

View File

@ -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 );