GitHub user captncraig opened a pull request:

    https://github.com/apache/thrift/pull/177

    C# - reduce number of server exceptions

    The current server implementation reads in a loop until the client closes, 
at which point an exception is thrown by the processor/transport and caught by 
the server.
    
    I solve this by creating a smarter peek functionality in TTransport which 
reads and caches a byte from the underlying transport and reinserts it in 
ReadAll.  

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/captncraig/thrift transport-peek

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/177.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #177
    
----
commit 342f5370468fe2f32663687120612f2154a7a184
Author: Craig Peterson <[email protected]>
Date:   2014-08-08T18:17:23Z

    Adding smarter peek functionality to prevent Transport Exception on every 
request.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to