Skip to content

Instantly share code, notes, and snippets.

@3cky
Created February 23, 2014 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3cky/9173573 to your computer and use it in GitHub Desktop.
Save 3cky/9173573 to your computer and use it in GitHub Desktop.
--- ./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();
@3cky
Copy link
Author

3cky commented Feb 23, 2014

Gazebo 1.9.2 patch addressing Fedora 20 gzclient startup error "Transport endpoint is not connected".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment