Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问apnsChannel.send之后调用apnsChannel.recvErrorResp()方法报错,是由于什么原因导致? #13

Open
henanping opened this issue Jul 10, 2017 · 3 comments

Comments

@henanping
Copy link

cn.teaey.apns4j.ApnsException: java.net.SocketException: Socket is closed
at cn.teaey.apns4j.network.ApnsChannel.recv(ApnsChannel.java:296) ~[apns4j.jar:na]
at cn.teaey.apns4j.network.ApnsChannel.recvErrorResp(ApnsChannel.java:194) ~[apns4j.jar:na]

@teaey
Copy link
Owner

teaey commented Jul 24, 2017

devicetoken 错了?

@henanping
Copy link
Author

devicetoken是对的,手机都收到了消息,就是调用这个方法报错

@teaey
Copy link
Owner

teaey commented Jan 23, 2018

你的代码应该是调用完,然后关闭。这种情况不应该去接受错误消息,因为channel已经关闭。

Repository owner deleted a comment from mrpanday93 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants