thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-4714) Java TFramedTransport calls write twice for each flush
Date Thu, 03 Jan 2019 04:32:00 GMT
James E. King III created THRIFT-4714:
-----------------------------------------

             Summary: Java TFramedTransport calls write twice for each flush
                 Key: THRIFT-4714
                 URL: https://issues.apache.org/jira/browse/THRIFT-4714
             Project: Thrift
          Issue Type: Improvement
          Components: Java - Library
    Affects Versions: 0.12.0
            Reporter: James E. King III
            Assignee: James E. King III


Based on THRIFT-1121 and THRIFT-959 this may have been an issue for a long time.  The fix
was easy however.  We make room for the frame size before writing to the buffer, then we only
have to pull out the buffer, drop the frame size into the 4 bytes we pre-allocated, and write
to the underlying transport once.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message