Commit Graph

15 Commits

Author SHA1 Message Date
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
andronache
428cd37b8e Replaced header in multiple places 2021-11-01 13:50:23 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
adragusin
d1787cb3fa Replaced hardcoded strings with consts in RPC.Call methods 2019-11-22 17:30:10 +01:00
Trial97
a68c76c952 Updated config_path to accept url as path to file 2019-03-14 12:40:19 +01:00
Trial97
d98ec1a0b3 Resolve ListenCfg conflicts 2018-10-31 11:02:30 +01:00
TeoV
523a41ba56 Fixes #1243 2018-10-26 08:55:49 +02:00
TeoV
3e872ee47a Update TLS config to consider CA from Authorized hosts 2018-10-23 11:24:14 +02:00
TeoV
7bd6c5841c Update TLS connection 2018-06-04 11:25:29 +03:00
DanB
0da9a10de7 Removing Direction, PDD, DisconnectCause, Supplier from main fields of CDR; MySQL/Postgres storing nanoseconds instead of seconds for usage, tests update 2017-10-30 18:18:37 +01:00
edwardro22
b651b06826 Removed copyright from go doc 2017-09-10 15:02:46 +00:00
DanB
37c853cb91 RPCClient with lazyConnect 2016-11-08 16:03:30 +01:00
DanB
401625861d Updated project README, COPYRIGHT information 2016-09-02 13:04:34 +02:00
DanB
d7f2330c6b New config options: httpposter_attempts, connect_timeout, reply_timeout, locking_timeout, fix connection drop detection in case of HA 2016-05-30 21:13:42 +02:00
Radu Ioan Fericean
d0b2ad9e68 cdr replication stress testing tools 2016-05-11 17:33:18 +03:00