BELUGA BEHR created THRIFT-4494:

             Summary: Increase Java Socket Buffer Size
                 Key: THRIFT-4494
             Project: Thrift
          Issue Type: Improvement
          Components: Java - Library
    Affects Versions: 0.11.0
            Reporter: BELUGA BEHR

  if (isOpen()) {
      try {
        inputStream_ = new BufferedInputStream(socket_.getInputStream(), 1024);
        outputStream_ = new BufferedOutputStream(socket_.getOutputStream(), 
      } catch (IOException iox) {
        throw new TTransportException(TTransportException.NOT_OPEN, iox);

The 1024 buffer size is pretty narrow, especially for modern servers with 
TCP/IP send and receive buffers ranging from 16K to 64K.  Please remove these 
hard coded values and rely on the underlying JVM default buffer sizes: 8Kib on 
most implementations.

This message was sent by Atlassian JIRA

Reply via email to