Opened 8 years ago

Closed 8 years ago

#1044 closed defect (fixed)

Infinite reconnection tries if server not running

Reported by: Georg Semmler Owned by: Alex Toader
Priority: major Milestone:
Component: rasnet Version: development
Keywords: Cc:
Complexity: Hard

Description

Using a current rasnet build the client(for example rasql) is trying to reconnect forever if the server is not running.


rasql -q "select r from RAS_COLLECTIONNAMES as r" —out string
/usr/local/rasdaman/bin/rasql: rasdaman query tool v1.0, rasdaman v9.1.0-g1198015 — generated on 04.11.2015 11:21:56.
opening database RASBASE at localhost:7001...E1104 11:44:14.807002087 29989 tcp_client_posix.c:171] failed to connect to 'ipv4:127.0.0.1:7001': socket error: connection refused
E1104 11:44:15.808608534 29989 tcp_client_posix.c:171] failed to connect to 'ipv4:127.0.0.1:7001': socket error: connection refused
E1104 11:44:17.570380611 29989 tcp_client_posix.c:171] failed to connect to 'ipv4:127.0.0.1:7001': socket error: connection refused
E1104 11:44:20.572618519 29989 tcp_client_posix.c:171] failed to connect to 'ipv4:127.0.0.1:7001': socket error: connection refused


Change History (3)

comment:1 by Alex Dumitru, 8 years ago

Owner: changed from Alex Dumitru to Alex Toader
Status: newassigned

I have the same issue. start_rasdaman.sh and stop_rasdaman.sh should be idempotent in my opinion.
@Alex Can you check this?

comment:2 by Alex Toader, 8 years ago

I will provide a fix that will abort the connection request after a fixed number of unsuccessful attempts.
I left the default behavior because it gave the user more power on deciding when to give up on connecting to a service.

comment:3 by Alex Toader, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.