[ https://issues.apache.org/jira/browse/THRIFT-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mattias de Zalenski updated THRIFT-585: --------------------------------------- Attachment: t_py_generator.cc A related py:twisted exception handling issue is that unexpected exceptions passed in via errbacks to the write_results_exception_METHOD functions are not handled, but cause the connection to be closed. Here is a patch that sends unexpected exceptions on the wire, like in standard thrift, as TApplicationException UNKNOWN exceptions. It also adds a function setUnknownErrorHandler to the Processor, to be able to log errors or obtain stack traces on the server side, for example. -- Mattias de Zalenski Software Developer Spotify Tel: +46 70 487 74 63 Fax: +46 8 510 62 416 This e-mail (including any attachments) may contain information that is confidential and/or privileged. It is intended only for the recipient(s). If you have reason to believe that you are not the intended recipient of this e-mail, please contact the sender immediately and delete the e-mail from your computer. > exceptions in the autogenerated send_METHOD functions are not propagated > (Twisted) > ---------------------------------------------------------------------------------- > > Key: THRIFT-585 > URL: https://issues.apache.org/jira/browse/THRIFT-585 > Project: Thrift > Issue Type: Bug > Components: Compiler (Python), Library (Python) > Reporter: Esteve Fernandez > Assignee: Esteve Fernandez > Attachments: 585-handle-send-exceptions.patch, t_py_generator.cc > > > If an error occurs in the autogenerated send_METHOD functions, the returned > deferred is not notified and the caller can't manage the error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.