db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt Huwig (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2747) Reply incorrectly handles read() returning -1
Date Tue, 29 Jul 2008 05:56:31 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617706#action_12617706

Kurt Huwig commented on DERBY-2747:


the EOF happens when a client closes the connection while talking to a Derby network server.
To reproduce it, you'd have to write a custom Derby network client, that closes a connection
in the middle of a conversation. For me it happened when the Derby server was heavily overloaded
and clients were stopped.

> 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:
>            Reporter: Kurt Huwig
>            Priority: Minor
>         Attachments: patch-2747-1.diff, patch-2747-2.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.

View raw message