db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6456) Infinite loop in NetworkServerControlImpl when reply >= 32k
Date Wed, 22 Jan 2014 12:16:25 GMT

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

ASF subversion and git services commented on DERBY-6456:
--------------------------------------------------------

Commit 1560329 from [~knutanders] in branch 'code/branches/10.10'
[ https://svn.apache.org/r1560329 ]

DERBY-6456: Infinite loop in NetworkServerControlImpl when reply >= 32k

Merged revision 1559943 from trunk.

> Infinite loop in NetworkServerControlImpl when reply >= 32k
> -----------------------------------------------------------
>
>                 Key: DERBY-6456
>                 URL: https://issues.apache.org/jira/browse/DERBY-6456
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server
>    Affects Versions: 10.10.1.1
>            Reporter: Martin JANDA
>            Assignee: Knut Anders Hatlen
>         Attachments: d6456-1a.diff
>
>
> When size of reply in NetworkServerControlImpl  equals to 32k (max size for short) ensureDataInBuffer
is in infinite loop. clientIs.read(..., replyBuffer.length - replyBufferCount) return 0 because
'replyBuffer.length - replyBufferCount' is 0 (bytes to read).
> Steps to reproduce:
> Open many connections (for me 34) with at least 1 SELECT query. and call getRuntimeInfo().
Runtime info string.length > 32kB. Leading to infinite loop.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message