Ray Chen
2011-02-27 02:51:28 UTC
Hi Martin,
Thank you for your patch!
Is that possible to give a test case to show the problem clearly?
Thanks!
Thank you for your patch!
Is that possible to give a test case to show the problem clearly?
Thanks!
[
https://issues.apache.org/jira/browse/HARMONY-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
------------------------------------
Attachment: outputstream-shortwrite.patch
Patch fixing the issue
therefore is required to loop to retry writing until everything is written,
or until writing fails.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
https://issues.apache.org/jira/browse/HARMONY-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
------------------------------------
Attachment: outputstream-shortwrite.patch
Patch fixing the issue
SocketOutputStream doesn't handle short writes properly
-------------------------------------------------------
Key: HARMONY-6682
URL: https://issues.apache.org/jira/browse/HARMONY-6682
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Tested/noticed on Android, same issue identified in
the Harmony code base, too-------------------------------------------------------
Key: HARMONY-6682
URL: https://issues.apache.org/jira/browse/HARMONY-6682
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Tested/noticed on Android, same issue identified in
Reporter: Martin Storsjö
Attachments: outputstream-shortwrite.patch
Even blocking writes can return before the full amount is written, e.g.
if a signal is received, or for any other arbitrary reason.Attachments: outputstream-shortwrite.patch
Even blocking writes can return before the full amount is written, e.g.
The java.io.OutputStream.write() interface that SocketOutputStream
implements returns void, and cannot report short writes to the caller, andtherefore is required to loop to retry writing until everything is written,
or until writing fails.
The same issue is reported to Android at
https://review.source.android.com/21459.--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
--
Regards,
Ray Chen
Regards,
Ray Chen