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

Sometimes,when throw an exception " redis read time out ",cilent can not recieve messages. #110

Closed
williamdeve opened this issue Oct 16, 2013 · 5 comments

Comments

@williamdeve
Copy link

Sometimes,when throw an exception " redis read time out ",cilent can not recieve messages.
I traced the invoke,and there is messages in redis when I sunscribe the channel,and also redisbroadcaster published the message, but the client cannot recive anymessage.

@williamdeve
Copy link
Author

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
at redis.clients.jedis.Protocol.process(Protocol.java:86)
at redis.clients.jedis.Protocol.read(Protocol.java:138)
at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:209)
at redis.clients.jedis.JedisPubSub.process(JedisPubSub.java:88)
at redis.clients.jedis.JedisPubSub.proceed(JedisPubSub.java:83)
at redis.clients.jedis.Jedis.subscribe(Jedis.java:2738)
at org.atmosphere.plugin.redis.RedisUtil.incomingBroadcast(RedisUtil.java:164)
at org.atmosphere.plugin.redis.RedisBroadcaster.incomingBroadcast(RedisBroadcaster.java:86)
at org.atmosphere.util.AbstractBroadcasterProxy$1.run(AbstractBroadcasterProxy.java:69)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:90)
at redis.clients.util.RedisInputStream.fill(RedisInputStream.java:109)
at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:45)
at redis.clients.jedis.Protocol.process(Protocol.java:71)
... 14 more

@williamdeve
Copy link
Author

[http-bio-8080-exec-10] INFO com.glodon.paas.coqui.web.servlet.ChatRoom - asdasd just send 213213
server logged the message but client cannot recieved. and there is no exception occurred

@jfarcand
Copy link
Member

Make sure you are using the latest Jedis client.

@williamdeve
Copy link
Author

Yes I use the latest jedis

@williamdeve
Copy link
Author

Maybe I find the reason:
if I remove the configuration :
org.atmosphere.cpr.Broadcaster.supportOutOfOrderBroadcast
true

this exception disappeared!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants