Created
February 23, 2014 16:26
-
-
Save 3cky/9173573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./gazebo/transport/Connection.cc.orig 2014-02-23 18:58:35.226997266 +0400 | |
+++ ./gazebo/transport/Connection.cc 2014-02-23 19:02:49.123645564 +0400 | |
@@ -842,6 +842,8 @@ void Connection::OnConnect(const boost:: | |
this->remoteURI = std::string("http://") + this->GetRemoteHostname() | |
+ ":" + boost::lexical_cast<std::string>(this->GetRemotePort()); | |
+ try | |
+ { | |
if (this->socket && this->socket->is_open()) | |
{ | |
this->remoteAddress = | |
@@ -852,6 +854,12 @@ void Connection::OnConnect(const boost:: | |
this->connectError = true; | |
gzerr << "Invalid socket connection\n"; | |
} | |
+ } | |
+ catch (std::exception& e) | |
+ { | |
+ this->connectError = true; | |
+ gzerr << "Error handling socket connection: " << e.what() << "\n"; | |
+ } | |
// Notify the condition that it may proceed. | |
this->connectCondition.notify_one(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gazebo 1.9.2 patch addressing Fedora 20 gzclient startup error "Transport endpoint is not connected".