mock server

97 views
Skip to first unread message

Matthias Wessendorf

unread,
Apr 12, 2017, 8:48:41 AM4/12/17
to pushy
hi,

when sending larger numbers of push (e.g. 10k), from a Java App (deployed to JBoss, as WAR), to the proxy server, I do see some "reconnects". Is that expected, or is the mock server not intended for real stress testing ? 

BTW. Against Apple's development, I don't see it. But than I don't want to spam them w/ bogus device tokens... Do they eventually tear down the connection, if that over and over receives bogus tokens ? 

-Matthias

--

Jon Chambers

unread,
Apr 12, 2017, 9:12:23 AM4/12/17
to Matthias Wessendorf, pushy
Reconnection attempts when talking to the mock server are unexpected; the mock server is absolutely intended for stress testing. Can you tell us a little more about your setup? Is there anything in the logs to suggest why the connection closed?

We've heard some scattered reports that the APNs server will close connections if bombarded with bogus tokens, but the reports aren't super clear, and the behavior isn't officially documented.

-Jon

--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthias Wessendorf

unread,
Apr 12, 2017, 10:50:02 AM4/12/17
to Jon Chambers, pushy
[DEBUG] Slf4JLogger - [id: 0x826af72a, L:/127.0.0.1:18443 ! R:/127.0.0.1:34686] Sending GOAWAY failed: lastStreamId '15', errorCode '2', debugData ''. Forcing shutdown of the connection.
java.nio.channels.ClosedChannelException


:-) 

I think that's because I send w/ topic "null", which is legal, but the Mockserver does not accept that.  looking into that 

Jon Chambers

unread,
Apr 12, 2017, 11:26:31 AM4/12/17
to Matthias Wessendorf, pushy
Hm. Would you mind opening a bug report? That's definitely not the behavior I'd expect.

Thanks!

-Jon

Matthias Wessendorf

unread,
Apr 13, 2017, 3:51:33 AM4/13/17
to Jon Chambers, pushy
sure,

I also get these, after some idle time (not much, - a minute or so)

java.nio.channels.ClosedChannelException
at io.netty.handler.ssl.SslHandler.channelInactive(...)(Unknown Source)



Jon Chambers

unread,
Apr 13, 2017, 9:08:50 AM4/13/17
to Matthias Wessendorf, pushy
"About a minute of inactivity" is exactly when we'd send PING frames. Seems like there's probably a correlation there.

-Jon

Matthias Wessendorf

unread,
Apr 13, 2017, 9:11:27 AM4/13/17
to Jon Chambers, pushy
I've seen that also inbetween messages 
Reply all
Reply to author
Forward
0 new messages