Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022661

InetAddress.writeObject() performs flush() on object output stream

    XMLWordPrintable

Details

    • b105
    • windows_xp
    • Verified

    Backports

      Description

        FULL PRODUCT VERSION :
        1.7.0_21-b11

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]
        Windows Server 2008

        A DESCRIPTION OF THE PROBLEM :
        InetAddress.writeObject performs flush() on object output stream.

        That spoils TCP throughput when the output stream is based on a socket channel of a TCP connection, since the SYN ACK delay of 2ms of Windows will be invoked when a packet is smaller than the MTU and the next packet is about to be sent.


        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Go to Java 7 update 15. Or insert a filtering output stream ignoring the flush().

        Attachments

          Issue Links

            Activity

              People

                chegar Chris Hegarty
                webbuggrp Webbug Group
                Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: