]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messenger: do not bind socket before connecting
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 7 Oct 2009 23:29:11 +0000 (16:29 -0700)
committerSage Weil <sage@newdream.net>
Wed, 7 Oct 2009 23:43:31 +0000 (16:43 -0700)
src/msg/SimpleMessenger.cc

index 738c2216035d6732e3515ee8267c35f779b39cbb..4251ebd881642494d80dc4998d7eaee564cb20db 100644 (file)
@@ -840,7 +840,7 @@ int SimpleMessenger::Pipe::connect()
     goto fail;
   }
   opened_socket();
-  
+#if 0
   // bind any port
   myAddr.sin_family = AF_INET;
   myAddr.sin_addr.s_addr = htonl(INADDR_ANY);
@@ -853,6 +853,7 @@ int SimpleMessenger::Pipe::connect()
             << ", " << errno << ": " << strerror_r(errno, buf, sizeof(buf)) << dendl;
     goto fail;
   }
+#endif
 
   char buf[80];