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

Jens Geyer edited comment on THRIFT-1700 at 10/5/12 6:12 AM:
-------------------------------------------------------------

{quote}
We use C# for client. Seems like thrift don't generates async wrappers for sync 
methods when using C#. So we made our hand-made task-based wrappers. 
{quote}

Have you checked the switches for C#? Thrift indeed supports async/await and 
Task<>.
                
      was (Author: jensg):
    {We use C# for client. Seems like thrift don't generates async wrappers for 
sync methods when using C#. So we made our hand-made task-based wrappers. }

Have you checked the switches for C#? Thrift indeed supports async/await and 
Task<>.
                  
> Number overflow in ReadFrame.
> -----------------------------
>
>                 Key: THRIFT-1700
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1700
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>    Affects Versions: 0.8
>            Reporter: Alexey
>
> private void ReadFrame()
> {
>       byte[] i32rd = new byte[header_size];
>       transport.ReadAll(i32rd, 0, header_size);
>       int size =
>               ((i32rd[0] & 0xff) << 24) |
>               ((i32rd[1] & 0xff) << 16) |
>               ((i32rd[2] & 0xff) <<  8) |
>               ((i32rd[3] & 0xff));
>       byte[] buff = new byte[size];
>       transport.ReadAll(buff, 0, size);
>       readBuffer = new MemoryStream(buff);
> }
> Here, when calculating size, number overflow throws sometimes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to