Open passionofvc opened 6 years ago
I don't understand what you are trying to say.
Try using the sublimator fork of this lib. I did a bit of work on it recently, fixing some bugs with reconnects and freeing resources.
thanks @sublimator I will the check out your new repository.
Also, make sure you are you doing everything from within run(...)
blocks or onX(...)
handlers, as the API is not thread safe.
hi @sublimator
I understand all the request and response must
be run by ScheduledThreadPoolExecutor's clientThread
,
thanks!
Let me know if you have any issues. I did some extra commits since last testing the reconnect stuff.
I haven't had a chance to write any quality automated tests, however last I checked I left the client reconnecting over night with scripted network drops and it held up well with seemingly no blowouts.
Also, be careful with the TransactionManager, it needs some love.
hi @sublimator I use ripple-lib-java(com.ripple.client) to connect to rippled daemon server for new validated transaction, when socket server restart rippled, I found onClose callback runs in Infinite loop, and continue to connect and disconnect. Does the disconnect problem fixed?