#1044 closed defect (fixed)

Infinite reconnection tries if server not running

Reported by: gsemmler Owned by: atoader
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 Changed 20 months ago by mdumitru

  • Owner changed from mdumitru to atoader
  • Status changed from new to assigned

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 Changed 20 months ago by atoader

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 Changed 20 months ago by atoader

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.