You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a web application that send a Push when a user to something that interest at an other user.
Sometime the push don't arrive at the other user.
This use case happen when i have this log at the server:
TRACE SERVER [31/Aug/2014 14:42:21] | [P8e301bfa-4eb8-41f5-9902-9608a4604aeb] | com.relayrides.pushy.apns.ApnsConnection - ApnsConnection-18 sending SendableApnsPushNotification [sequenceNumber=0, token=df07f9aab6c4f0de3f9dc7bae4332b65ae221a86f150db7e287947766b09e690, payl
oad={"aps":{"alert":"Giorgio ti ha inviato","sound":"pushsatispay.aif","badge":3}}, deliveryInvalidation=null]
TRACE SERVER [31/Aug/2014 14:42:21] | [P8e301bfa-4eb8-41f5-9902-9608a4604aeb] | com.relayrides.pushy.apns.ApnsConnection - ApnsConnection-18 successfully wrote notification 0
DEBUG SERVER [31/Aug/2014 14:42:21] | [P8e301bfa-4eb8-41f5-9902-9608a4604aeb] | com.relayrides.pushy.apns.ApnsConnection - ApnsConnection-18 caught an exception.
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:311)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:878)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:225)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:114)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:507)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:464)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:350)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:744)
It is possible that i need do the shutdown every time that the Response has done and the servlet has finished?
The text was updated successfully, but these errors were encountered:
It is possible that i need do the shutdown every time that the Response has done and the servlet has finished?
That seems very unlikely, but I'd need to know a lot more about how your application is set up to say anything useful. When are you creating a push manager? When are you shutting it down? What happens within the lifecycle of a servlet request?
…so in the absence of more information, I think the most likely case is that your connections are closing and your networking layer just isn't noticing it until you try to write something. Setting an idle connection timeout (see #116) should solve this problem. Please post a comment here if you think that's off the mark.
I have a web application that send a Push when a user to something that interest at an other user.
Sometime the push don't arrive at the other user.
This use case happen when i have this log at the server:
It is possible that i need do the shutdown every time that the Response has done and the servlet has finished?
The text was updated successfully, but these errors were encountered: