You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/03/24 23:27:24 UTC
[jira] Commented: (HADOOP-3073) SocketOutputStream.close() should
close the channel.
[ https://issues.apache.org/jira/browse/HADOOP-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581700#action_12581700 ]
Raghu Angadi commented on HADOOP-3073:
--------------------------------------
Now I see the source of confusion. I have search shortcut for javadoc to go to Java SE 5.0. [SE 6|http://java.sun.com/javase/6/docs/api/java/net/Socket.html#getOutputStream()] explicitly states that closing this stream closes the socket, but [SE 5.0|http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#getOutputStream()] doesn't.
> SocketOutputStream.close() should close the channel.
> ----------------------------------------------------
>
> Key: HADOOP-3073
> URL: https://issues.apache.org/jira/browse/HADOOP-3073
> Project: Hadoop Core
> Issue Type: Bug
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
>
> When the stream returned by Socket.getOutputStream() is closed, it closes the socket too. So hadoop.SocketOutputStream and hadoop.SocketInputStream should do the same.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.