Closed RyanHubs closed 6 years ago
@intelliot Can you help me to see it? Thank you
What rippled server are you using? Are you running rippled yourself? If the server disconnects you, you’ll get that error.
@intelliot
yes, I run the rippled server locally(should be Stock server mode).
The network topo is:
(app users)---
if I run the rippled server locally,how can I solve this problem?
One more question, Should I use "new Remote({ server: wsURL,timeout: wsTimeout})" for every user http request, and disconnect() for receiving the data from rippled server, Like this:
async handler(method, ...options) { await this.remote.connect(); let res = await this.remote [method] (...options); await this.remote.disconnect(); return res; }
Thanks~~
I recommend using a single connection to rippled, no matter how many users your site has. There’s no need to disconnect.
@intelliot OK,I will use a single connection to rippled, thanks~~
I see this info at: https://developers.ripple.com/rippled-server-modes.html#properties-of-a-good-validator
Stock server - follows the network with a local copy of the ledger.
Validating server, or validator for short - participates in consensus.
As an exchange, we need history ledger data and sumbit payment.(At present, the Stock server mode we use) In this case, which rippled server mode should we choose? Can you give me some advice?
Stock server is the correct mode to use.
@intelliot Thank you very much~~~
@intelliot Can you help me to see it? Thank you
topo: AppUsers --->[http]--->koa2Server --->[one instance of RippleAPI]---->RippledServer(local) timeout parameter seems to be invalid, when a concurrent request is more than 100+, a request Hang up occurs for 446160ms c
@intelliot Is it possible that the websocket connection caused a memory leak?
It’s possible, but I don’t see evidence of a memory leak. Where do you see that?
@LuoRyan I'm closing this issue, but please let us know if you spot a memory leak.
So, can you help me to see it? Thank you