You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Allen George (JIRA)" <ji...@apache.org> on 2017/05/02 01:19:04 UTC

[jira] [Commented] (THRIFT-4187) Dart -> Rust Framed cross tests fail

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

Allen George commented on THRIFT-4187:
--------------------------------------

So, AFAICT, this happens because the Dart client can't handle framed writes that come in two pieces.

The Rust server is doing the following:

# Write the header bytes (i.e. message length)
# Write the body

In this situation it seems like the dart client can't read a complete frame. Changing the rust server to do the write in one piece (i.e. header and body at the same time) seems to avoid the failure.

> Dart -> Rust Framed cross tests fail
> ------------------------------------
>
>                 Key: THRIFT-4187
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4187
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Library
>            Reporter: Allen George
>            Assignee: Allen George
>            Priority: Minor
>
> For some reason the Dart (client) -> Rust (server) framed-transport cross tests fail. Initial investigation shows that *somehow* the dart client think the socket was closed, which means it doesn't read the message from the underlying transport.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)