redis error 10054 RedisCode=1, ErrorCode=10054, An existing connection was forcibly closed by the remote host

1,166 views
Skip to first unread message

caoz...@gmail.com

unread,
Dec 14, 2015, 1:34:34 AM12/14/15
to Redis DB
Hi

 I got an IOException from Redis2.8.19 
 RedisCode=1, ErrorCode=10054(WSAGetLastError), An existing connection was forcibly closed by the remote host.
RedisServer war used as a cache,no rdb, no aof(#save 900 1 #save 300 100#save 60 10000 appendonly no)
we use "redisCommand"  to get or set data,Code seems to mostly work.but,  occasionally I see the following error as well:
some redisContext
pReply is null! (1) An existing connection was forcibly closed by the remote host.
RedisCode=1, ErrorCode=10054, An existing connection was forcibly closed by the remote host.
some redisContext
 RedisCommandWithReply takes 5156(ms), Too Slow

The Environments
(redis server  VM + centos
redis client Hiredis(windows server 2010) 
 )

Josiah Carlson

unread,
Dec 14, 2015, 11:27:34 PM12/14/15
to redi...@googlegroups.com
If Redis is actually running on a Centos server, then the error message you received is from your client library. And your client library is saying that a command took 5156 ms, which was too slow, so it disconnected.

You may need to look into your client's documentation (available wherever you got your client library) to determine how to increase your timeout.

 - Josiah


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

caoz...@gmail.com

unread,
Dec 16, 2015, 6:37:25 AM12/16/15
to Redis DB
Thank you very much for your enthusiasm,
The problem is solved.
Machine exception, we changed a new machine, everything is normal.
(In fact, redisServer verboselog :“redis From client: Connection timed out Reading”)
thanks again

在 2015年12月15日星期二 UTC+8下午12:27:34,Josiah Carlson写道:
Reply all
Reply to author
Forward
0 new messages