Coder Social home page Coder Social logo

Comments (14)

JKorf avatar JKorf commented on August 27, 2024

Hi, do you have/can you provide debug logging of when this happens? By design Bitfinex.NET should resubscribe the subscriptions that were running when the disconnect happened. If this doesn't happen (sometimes), then that's a bug.

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Hi Jan.

In the Activity log You can see a connection/disconnection logged the day 14 at 19:14:25 - 19:14:28 .
In the candle events log You see that the last 60 min candle event received is at 19:00:00 and then no more events were received.

What I suspect is that connection/disconnection causes the loss of candle subscription.
The version I'm testing was compiled on 12/5/2018 with last available Bitfinex.NET library.
Bitfinex.dll properties says version 1.0.0.0

Best regards.

edc

20180614ActivityLog.txt
20180614CandleEvents.txt

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Right Now Another example:

I logged:

20/06/2018 16.40.38.025 
------+++------
Bitfinex Connection Lost
------+++------
20/06/2018 16.40.41.143 
------+++------
Bitfinex Connection Restored
------+++------
20/06/2018 16.41.14.850 
------+++------
Bitfinex Connection Lost
------+++------
20/06/2018 16.41.17.115 
------+++------
Bitfinex Connection Restored
------+++------

And Subscriptions (at least candle subscriptions than in my app fires all the events) are gone.
The 17:00:00 Candle was not logged.

from bitfinex.net.

JKorf avatar JKorf commented on August 27, 2024

Hi, I've refactored some of the reconnection handling in the new version (v1.0.13), could you see if this fixes your problems?

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Hi.
I went mad several hours testing some changes that I made and nothing worked.
Then I reverted to 1.012 and everything began to work again.
Apparently 1.013 is broken and candle subscription does not return any data.

from bitfinex.net.

JKorf avatar JKorf commented on August 27, 2024

Sorry to hear that, I'll look into it tomorow

from bitfinex.net.

JKorf avatar JKorf commented on August 27, 2024

I assume you called the subscribe functions before the Start function in the socket client? I found a bug introduced in version 1.0.13 which caused the subscriptions only to work if called AFTER the start method. This is fixed in 1.0.14, please try that.

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Yes, exactly.
I literally copied your example that makes subscriptions before starting socket.

Thank You.

from bitfinex.net.

JKorf avatar JKorf commented on August 27, 2024

Can you confirm that the subscriptions still work after reconnecting?

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Tested.
It works.

Thank You.

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Update:
My system reconnects if it doesn't receive candle updates for 300 secs and, after 3 weeks of 24/7 operation, I can confirm that is working like a charm.
Reconnecting works.

from bitfinex.net.

JKorf avatar JKorf commented on August 27, 2024

Great. Do you still have 300s timeouts though? The websocket should reconnect after 15 seconds of not receiving any data, so I would expect that wouldn't be necessary. (server send a heartbeat message every x seconds, which is handled internally in the library)

from bitfinex.net.

ciottied avatar ciottied commented on August 27, 2024

Oh Yes.
many connection/disconnections per day, 300 secs timeout and reconnection at least once per day.
See screenshot.

image

from bitfinex.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.