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

Henrique Mendonça commented on THRIFT-2954:
-------------------------------------------

The protocol layer expects the correct type, but this can be probably fixed 
with a proper cast either on the generated code or on the protocol itself. The 
latter might be actually easier when dealing with list and structs.
If you want to contribute, please have a look at: 
https://thrift.apache.org/docs/HowToContribute

Cheers,
Henrique

> calling function with parameter type different as defined in idl breaks the 
> connection
> --------------------------------------------------------------------------------------
>
>                 Key: THRIFT-2954
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2954
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Compiler, Python - Library
>    Affects Versions: 0.9.2
>         Environment: tried with python server/client and also with c++ server 
> with python client
>            Reporter: Nitin Kumar
>            Priority: Critical
>
> say my idl (.thrift) file defines a function
> void fn(1: string if_name);
> if I call this function as fn(3) the connection get closed, hence not 
> allowing next set of function to be called. (function call has been kept 
> within exception handling)
> but for other cases like if we call this function with 2 params in place of 1 
> as expected by function. it just thrown exception but does not close the 
> connection.



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

Reply via email to