You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2009/06/15 10:47:07 UTC

[jira] Updated: (HARMONY-6232) [classlib][luni] sendfile should not return -1 when EAGAIN is fired.

     [ https://issues.apache.org/jira/browse/HARMONY-6232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Li Jing Qin updated HARMONY-6232:
---------------------------------

    Attachment: SendFileServer.java
                SendFileClient.java
                MySendFileTest.java

Java file for test.

> [classlib][luni] sendfile should not return -1 when EAGAIN is fired.
> --------------------------------------------------------------------
>
>                 Key: HARMONY-6232
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6232
>             Project: Harmony
>          Issue Type: Bug
>         Environment: linux
>            Reporter: Li Jing Qin
>         Attachments: MySendFileTest.java, SendFileClient.java, SendFileServer.java
>
>
> When transferring file with NONBLOCKING mode, an EAGAIN will be returned by errno. This is because two ends is related to the sending file. If one end is much faster than the other, this end will block though setting NONBLOCKING. So we should return the actually bytes we have transfered and ignore the EAGAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.