java.net.SocketException: Broken pipe

1,546 views
Skip to first unread message

Rajitha R

unread,
Aug 27, 2011, 11:45:35 AM8/27/11
to Jedis
Hi All,

I am running redis server with jedis client.After sometime , when i am
not adding anything into the database,
i am getting the following error..

redis.clients.jedis.exceptions.JedisConnectionException:
java.net.SocketException: Broken pipe

Kindly let me know why am i facing this exception..

Thanks in Advance,
Rajitha

Dario Guzik

unread,
Sep 2, 2011, 12:16:48 PM9/2/11
to jedis...@googlegroups.com
Which version of Jedis are you using?

Are you sending any command to redis when you receive the  Exception?

In Redis you can set a timeout to disconnect a client if it is idle for x seconds, so if you are not sending commands the client might get disconnected.

2011/8/27 Rajitha R <rajit...@gmail.com>

Jonathan Leibiusky

unread,
Sep 2, 2011, 2:27:51 PM9/2/11
to jedis...@googlegroups.com
exactly. and also depending on your Jedis version it should give you a more polite exception :)

rajitha r

unread,
Sep 5, 2011, 2:07:09 AM9/5/11
to jedis...@googlegroups.com
Yes,the timeout was causing the exception.Thanks a lot for the replies..:)
--
Regards,

Rajitha.R

Reply all
Reply to author
Forward
0 new messages