Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket stuck #901

Open
idoall opened this issue Mar 15, 2022 · 2 comments
Open

Websocket stuck #901

idoall opened this issue Mar 15, 2022 · 2 comments

Comments

@idoall
Copy link

idoall commented Mar 15, 2022

New Issue

Websocket stuck

When switching to a usable proxy, the websocket will get stuck when trying connect again.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System:
    mac 11.5
  • GoCryptoTrader version (gocryptotrader -version):
    GoCryptoTrader v0.1 amd64 go1.17.6 pre-release.

Expected Behavior

Current Behavior

When the proxy network switches, websockt will output "binance websocket has been disconnected. Reason: read TCP 10.17.0.6:65306 - > 52.68.124.244:9443: use of closed network connection"
  1. Use a timer to detect websocket every 5 minutes
If ws.Isconnected() {
    return
}else{
    ws.connect()
}

Failure Logs

binance websocket has been disconnected. Reason: read TCP 10.17.0.6:65306 - > 52.68.124.244:9443: use of closed network connection
@gloriousCode gloriousCode added review me This pull request is ready for review and removed review me This pull request is ready for review labels Mar 15, 2022
@idoall
Copy link
Author

idoall commented Apr 5, 2022

WebSocket Status :Init:true Connected:true IsConnecting:false IsConnectionMonitorRunning:true IsDataMonitorRunning:false IsTrafficMonitorRunning:true

@thrasher-
Copy link
Collaborator

Hey @idoall, are you still experiencing this issue after #1059 was merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants