thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fauzan Ardhana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4607) Go - Making concurrent connection resulting EOF
Date Wed, 08 Aug 2018 16:47:00 GMT

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

Fauzan Ardhana commented on THRIFT-4607:
----------------------------------------

You can use this example of my program, you can run this example to examine what's the problem,
i've provided you with the authtoken(which i don't really care right now) and the endpoint.
This program uses the thrift version 0.11.0 from apache's github
[https://gist.github.com/fauzanardh/7e073ba5bb22d90721f955ab3b5134ef]

 
{noformat}
but when i tried to modified the code to use closed connection it runs fine.{noformat}
it's on the thrift http_client.go at the Flush function, if i put "req.Close = true" under
the http.NewRequest, it runs fine

 

and for the lineproj, you can download it from my github
[https://github.com/fauzanardh/lineproj]

> Go - Making concurrent connection resulting EOF
> -----------------------------------------------
>
>                 Key: THRIFT-4607
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4607
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Library
>    Affects Versions: 0.11.0
>            Reporter: Fauzan Ardhana
>            Priority: Major
>
> When i make concurrent function calls thrift returns error, but when i tried to modified
the code to use closed connection it runs fine. I need to use keep-alive connection to make
the request efficiently.
> snippet of my code : https://ghostbin.com/paste/ts3oo
> i don't know what went wrong with my code but, the EOF happens when i tried to make
2 services(different headers) and run them concurrently while using keep-alive connection,
it is fine when i only use one service.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message