Ticket #12 (closed defect: released)

Opened 5 years ago

Last modified 5 years ago

Connection to remote-host fails due to erroneous parsing of connectstring

Reported by: arjen Owned by: olly
Priority: high Milestone:
Component: Library API Version: 0.6.5
Severity: trivial Keywords:
Cc: Blocked By:
Operating System: All Blocking:

Description

The open_stub tries to determine the hostname and portnumbers. On my system it continuously failed to connect while trying to connect to port 0...

a stubstring like: remote localhost:23456

unsigned int port = atoi(line.c_str() + colon); Then the client tried to convert ':23456' to a port. Adding a +1 to that solves the problem, whether that's the nicest solution is up to you :)

So this made it work: unsigned int port = atoi(line.c_str() + colon +1);

Change History

Changed 5 years ago by olly

  • status changed from new to closed
  • resolution set to fixed

Applied suggested fix to CVS HEAD - please change state to VERIFIED if this fixes your problem.

Changed 5 years ago by arjen

  • resolution changed from fixed to verified

I've looked at your change in the code, which is exactly what I changed myself to get it working. So, I mark it as verified, although I didn't check the changed cvs out.

Changed 5 years ago by olly

  • resolution changed from verified to released

Changed 5 years ago by trac

  • platform set to All
Note: See TracTickets for help on using tickets.