You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/10/03 20:26:20 UTC

[jira] [Commented] (TS-4922) TSIOBufferReaderAvail not updates by the VConn write side

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

James Peach commented on TS-4922:
---------------------------------

Actually, adding more tracing shows that this does report different values. Maybe the trick is to make sure we get an event after the write buffer drains?

> TSIOBufferReaderAvail not updates by the VConn write side
> ---------------------------------------------------------
>
>                 Key: TS-4922
>                 URL: https://issues.apache.org/jira/browse/TS-4922
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: TS API
>            Reporter: James Peach
>             Fix For: sometime
>
>
> When proxying from a plugin, you call {{TSVConnWrite}} passing in a {{TSIOBufferReader}} that is specific for the write side of the VC. The implication is that the core will use this reader to read out of the buffer as the plugin writes into it.
> However, if you subsequently call {{TSIOBufferReaderAvail}} on the buffer reader that you created, you will find that this count of available bytes never goes down. It seems possible (likely?) that the consumer side of the write never calls {{consume()}} on the reader.
> This can be demonstrated using the {{example/passthru/passthru.cc}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)