title: Connection to remote redis server is reset
body: <p>Trying the basic set operation on a redis server installed in red hat linux.</p>
  
  <pre><code>        JedisPool pool = new JedisPool(new JedisPoolConfig(), HOST, PORT);
  
          Jedis jedis = null;
          try {
            jedis = pool.getResource();
  
            System.out.println(jedis.isConnected()); //prints true
  
            jedis.set("status", "online"); //gets exception
  
          } finally {
            if (jedis != null) {
              jedis.close();
            }
          }
  
          pool.destroy();
  </code></pre>
  
  <p>Getting the following exception:</p>
  
  <pre><code>Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset
      at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:201)
      at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40)
      at redis.clients.jedis.Protocol.process(Protocol.java:132)
      at redis.clients.jedis.Protocol.read(Protocol.java:196)
      at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:288)
      at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:187)
      at redis.clients.jedis.Jedis.set(Jedis.java:66)
      at com.revechat.spring.redis_test.App.main(App.java:28)
  Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:195)
      ... 7 more
  </code></pre>
  
  <p>How to resolve the issue ?</p>