xchange-stream
xchange-stream copied to clipboard
429 Too Many Requests
From time to time I am getting this error, and it goes into the loop, brings CPU to 100%, I guess, it tries to reconnect unsuccessfully. Is there a delay I can set for reconnect ?
[nioEventLoopGroup-13-3] WebSocketClientHandler [65]: WebSocket Client failed to connect. Invalid handshake response getStatus: 429 Too Many Requests
Which exchange?
Ah Bitfinex as mentioned on #191
In the last version loop without delay has been fixed, delay NettyStreamingService.DEFAULT_RETRY_DURATION (15 sec) is used between reconects. CPU to 100% should not happaned. But anyway 15 sec is not enought for stop blocking in case "429 Too Many Requests" and we should think how to detect blocking case and myabe increase deleay for stopping blocking.
I created pool request for limiting BFX open connection operations
https://github.com/bitrich-info/xchange-stream/pull/269