Adam Jones

Results 19 comments of Adam Jones

Hi @sshallow This looks like you could be using a proxy server and the problem is related to either that or a flakey internet connection rather than apns2. By default...

@bmueller The way you've got it set up you're creating a notifications channel inside every HTTP request and then spawning 20 go workers to consume off this channel. This is...

Hi @keremoge You can already override the URL's if needed The first way is to set the default host before you init a client: ``` apns2.DefaultHost = "api.mycustomdomain.com" ``` Alternatively,...

I think you will find this is the same issue as #17 and #20 You are setting a Timeout on the default HTTP Client, but the occasional TLS Connection is...

It may be that you are doing nothing wrong and Apple has patched the error at their end. I just tried now with the same code and i wasn't able...

@deamonwatcher what timeout value are you using. Are you using the default timeout or have you got a smaller timeout?

And can you just confirm that `apns2.TLSDialTimeout` is less than `apns2.HTTPClientTimeout` I am guessing you have left this as default too (20 secs)

Thanks for the extra info. I am going to try and reproduce this.

Hey @deamonwatcher Thanks again for your example code. I have been able to reproduce this `RoundTrip failure: net/http: request canceled` error. The error appears to be happening because you are...