TCP socket input and output streams fail to observe TCP half-close semantics

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.1.6
    • Component/s: core-libs
    • None
    • generic
    • solaris_2.6

      If I try to obtain a TCP socket's output stream after I close its input stream,
      I get a null pointer exception. This is behaviour that I believe should not be
      occurring.

      To reproduce this problem, run the included test program. It should barf
      as follows:

      java.lang.NullPointerException
      at java.io.FileInputStream.<init>(FileInputStream.java)
      at java.net.SocketInputStream.<init>(SocketInputStream.java:50)
      at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:394)
      at java.net.Socket.getInputStream(Socket.java:290)
      at test.suck.main(suck.java:18)


            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: