Giter VIP home page Giter VIP logo

Comments (8)

st3fan avatar st3fan commented on June 30, 2024

Looking into this. I'm experiencing the same problem.

from dovecot-xaps-daemon.

patricks avatar patricks commented on June 30, 2024

I have the same problem.

from dovecot-xaps-daemon.

st3fan avatar st3fan commented on June 30, 2024

Could be related to #7 - Investigating

from dovecot-xaps-daemon.

st3fan avatar st3fan commented on June 30, 2024

Note to self, I restarted my deployment at 2014-11-12 21:59. Let's see if the error from #7 appears when this stops working.

from dovecot-xaps-daemon.

st3fan avatar st3fan commented on June 30, 2024

@maiksd @patricks Can you grep for APNSProtocol.dataReceived in your log files?

from dovecot-xaps-daemon.

patricks avatar patricks commented on June 30, 2024

How to I enable logging? I don't have any log files for the daemon.

EDIT:

I also log my daemon output now into a log file. So maybe I can get you so some data in a few days.

from dovecot-xaps-daemon.

maiksd avatar maiksd commented on June 30, 2024

I use this script to start the daemon, which then writes a logfile as well as outputting everything to the console:

#!/bin/bash
LOG=$HOME/xapsd.log 
cd $HOME/dovecot-xaps-daemon
twistd -n xapsd --key=$HOME/key.pem --certificate=$HOME/certificate.pem --database=$HOME/xapsd.json --socket=/var/run/dovecot/xaps/xapsd.sock 2>&1 | tee -a $LOG

$ grep APNSProtocol.dataReceived xapsd.log
2014-10-29 19:59:56+0100 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSProtocol.dataReceived: 080a00000000

That's it. The daemon has been running for weeks without problems now. Logfile has 6648 lines.

from dovecot-xaps-daemon.

st3fan avatar st3fan commented on June 30, 2024

Pretty sure the fix i just pushed will do the trick. Auto-reconnect was broken due to bad code.

Now when the server loses the connection to the APNS service, it will try to reconnect after a minute. Notifications within that timeframe should be queued and will go out when the reconnect was successful.

There is one issue: the notification that failed is not pushed back on the queue. I'll file a bug to fix that.

from dovecot-xaps-daemon.

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.