]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: clean out dead connect-side bind code
authorSage Weil <sage@newdream.net>
Thu, 8 Oct 2009 16:54:17 +0000 (09:54 -0700)
committerSage Weil <sage@newdream.net>
Thu, 8 Oct 2009 16:54:17 +0000 (09:54 -0700)
src/msg/SimpleMessenger.cc

index 4251ebd881642494d80dc4998d7eaee564cb20db..dc7e0156ce4e801675288a1093a273763d6182a0 100644 (file)
@@ -823,7 +823,6 @@ int SimpleMessenger::Pipe::connect()
   
   char tag = -1;
   int rc;
-  struct sockaddr_in myAddr;
   struct msghdr msg;
   struct iovec msgvec[2];
   int msglen;
@@ -840,20 +839,6 @@ 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);
-  myAddr.sin_port = htons( 0 );    
-  dout(10) << "binding to " << myAddr << dendl;
-  rc = ::bind(sd, (struct sockaddr *)&myAddr, sizeof(myAddr));
-  if (rc < 0) {
-    char buf[80];
-    dout(2) << "bind error " << myAddr
-            << ", " << errno << ": " << strerror_r(errno, buf, sizeof(buf)) << dendl;
-    goto fail;
-  }
-#endif
 
   char buf[80];