code: @Override
      public void close() throws IOException {
          if (!closed) {
              try {
                  if (!eof && state != CHUNK_INVALID) {
                      // read and discard the remainder of the message
                      final byte[] buff = new byte[BUFFER_SIZE];
                      try {
                          while (read(buff) >= 0) {
                             continue;
                          }
                      } catch (ConnectionClosedException e) {
                          // just ignore
                      } catch (TruncatedChunkException e) {
                          // just ignore
                      }
                  }
              } finally {
                  eof = true;
                  closed = true;
              }
          }
      }
docs: Upon close, this reads the remainder of the chunked message,
  leaving the underlying socket at a position to start reading the
  next response without scanning.
  @throws IOException in case of an I/O error