最近极光连接经常提示超时

jpush
jmessage
标签: #<Tag:0x00007fb8462caf78> #<Tag:0x00007fb8462cae38>

(风清气正) #1

最近连接时不时的就提示超时,下面是错误log

W/JIGUANG-JCore: [ConnectingHelper] Can not get sis info from host: s.jpush.cn
       java.net.SocketTimeoutException
       at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:604)
       at libcore.io.IoBridge.recvfrom(IoBridge.java:560)
       at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:161)
       at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:169)
       at java.net.DatagramSocket.receive(DatagramSocket.java:253)
       at cn.jiguang.b.d.c.a(Unknown Source)
       at cn.jiguang.b.b.g.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
       at java.lang.Thread.run(Thread.java:838)
       Caused by: libcore.io.ErrnoException: recvfrom failed: EAGAIN (Try again)
       at libcore.io.Posix.recvfromBytes(Native Method)
       at libcore.io.Posix.recvfrom(Posix.java:136)
       at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
       at libcore.io.IoBridge.recvfrom(IoBridge.java:557)
       at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:161) 
       at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:169) 
       at java.net.DatagramSocket.receive(DatagramSocket.java:253) 
       at cn.jiguang.b.d.c.a(Unknown Source) 
       at cn.jiguang.b.b.g.run(Unknown Source) 
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 
       at java.lang.Thread.run(Thread.java:838)

#2

(风清气正) #3

我知道这个帖子
我时不时的来这么一次连接超时,连续登陆几次后 就可以登陆了
我最近用im的 logout这个方法退出登录 接着再重新登录,就容易出现这个问题
如果真是端口没开放,为什么登录几次 就可以登录了呢?


#4

将你的这个情况的完整日志(logout、出现的几次连接超时,直到登录成功,之后其他的操作是否还会有连接超时等)提供一下,并说明你的SDK版本,并检测你的网络

另:换一个网络测试一下,譬如WiFi换成4g或者其他运营商的4g