mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
Stop recycling SockAddrs
This commit is contained in:
parent
06d8b84a13
commit
5a30852961
@ -76,8 +76,8 @@ namespace mongo {
|
||||
|
||||
void Listener::listen() {
|
||||
static long connNumber = 0;
|
||||
SockAddr from;
|
||||
while ( ! inShutdown() ) {
|
||||
SockAddr from;
|
||||
int s = accept(sock, from.raw(), &from.addressSize);
|
||||
if ( s < 0 ) {
|
||||
int x = errno; // so no global issues
|
||||
|
Loading…
Reference in New Issue
Block a user