Ticket #12 (closed defect: released)
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
Note: See
TracTickets for help on using
tickets.
