Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#12 closed defect (released)

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

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

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 (3)

comment:1 by Olly Betts, 21 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Arjen, 21 years ago

Resolution: fixedverified

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.

comment:3 by Olly Betts, 21 years ago

Operating System: All
Resolution: verifiedreleased
Note: See TracTickets for help on using tickets.