You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kurt Huwig (JIRA)" <ji...@apache.org> on 2007/06/02 21:41:15 UTC

[jira] Updated: (DERBY-2747) Reply incorrectly handles read() returning -1

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

Kurt Huwig updated DERBY-2747:
------------------------------

    Attachment: patch-2747-1.diff

This patch probably fixes the problem - I am unable to test it. I wrote it in a way that should be robust against future changes like adding "continue" to the loop.

> Reply incorrectly handles read() returning -1
> ---------------------------------------------
>
>                 Key: DERBY-2747
>                 URL: https://issues.apache.org/jira/browse/DERBY-2747
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.2.2.0
>            Reporter: Kurt Huwig
>            Priority: Minor
>         Attachments: patch-2747-1.diff
>
>
> If java/client/org/apache/derby/client/net/Reply.java encounters a EOF, i.e. reads -1 then it adds this value to the number of bytes read and prints an error message which reads "-1 bytes read".

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