0
0
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:
Mathias Stearn 2010-04-02 21:28:55 -04:00
parent 06d8b84a13
commit 5a30852961

View File

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