You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/07 13:10:12 UTC

[jira] [Commented] (THRIFT-3087) Pass on errors like "connection closed"

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

ASF GitHub Bot commented on THRIFT-3087:
----------------------------------------

GitHub user NOMORECOFFEE opened a pull request:

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

    THRIFT-3087 Pass on errors like "connection closed"

    Currently client received 'badmatch' error when the thrift server teardown. I'd like information about errors in the thrift clinet before the process exits.
    I've attached an implementation which fixes this good enough for my own and add test.

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

    $ git pull https://github.com/NOMORECOFFEE/thrift handle_errors

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

    https://github.com/apache/thrift/pull/430.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 #430
    
----
commit 17d416aca5c5037ff233d4c2e7afa0ea36df5f06
Author: NOMORECOFFEE <gi...@hotmail.com>
Date:   2015-04-06T10:55:08Z

    thrift_reconnecting_client never try to reconnect
    
    gen_server does not handle message try_connect after unsuccessful connection, and gen_server always return {error, noconn}
    
    THRIFT-3085

commit 34a5ac80cacdc215f649865290a052575e3a2e43
Author: Веселов <ve...@corp.sputnik.ru>
Date:   2015-04-07T08:29:59Z

    catch badmatch to pass errors into handler module

commit fcb89172b4c63bca020bb6953537ef3d7259ad48
Author: Веселов <ve...@corp.sputnik.ru>
Date:   2015-04-07T10:22:26Z

    test handle transport error

----


> Pass on errors like "connection closed"
> ---------------------------------------
>
>                 Key: THRIFT-3087
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3087
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Erlang - Library
>            Reporter: Veselov Andrey
>            Priority: Minor
>
> Currently client received 'badmatch' error when the thrift server teardown.  I'd like information about errors in the thrift clinet before the process exits.
> I've attached an implementation which fixes this good enough for my own  and add test.



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