code: private static int getHttpTimeout(Storage st) {
      if (!(st instanceof NNStorage))
        return DFS_IMAGE_TRANSFER_TIMEOUT_DEFAULT; 
      NNStorage storage = (NNStorage) st;
      if (storage == null || storage.getConf() == null) {
        return DFS_IMAGE_TRANSFER_TIMEOUT_DEFAULT;
      }
      return storage.getConf().getInt(DFS_IMAGE_TRANSFER_TIMEOUT_KEY,
          DFS_IMAGE_TRANSFER_TIMEOUT_DEFAULT);
    }
docs: Get connection and read timeout.