[
https://issues.apache.org/jira/browse/THRIFT-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wenjieDeng updated THRIFT-4866:
-------------------------------
Attachment: test_code.zip
Environment:
python
OpenSSL 1.0.2k-fips 26 Jan 2017
was:python3.6
Description:
I use Thrift API (TSSLSocket + TNonblockingServer) tested with python3.6.
But when I try to send a message larger than 17kb from client to server, the
client gets the error response message: "TSocket read 0 bytes".
The problem also exists in python2.7
was:
I use Thrift API (TSSLSocket + TNonblockingServer) tested with python3.6.6.
But when I try to send a message larger than 17kb from client to server, the
client gets the error response message: "TSocket read 0 bytes".
Summary: TSSLSocket + TNonblockingServer does not support larger
message in python (was: TSSLSocket does not support larger message in
python3.6)
Debug in the server,raise exception as follow:
python2 thrift_test_server.py
Starting the server...
ignoring socket exception:SSLWantReadError(2, u'The operation did not complete
(read) (_ssl.c:1783)')
python2.7 cliet_thrift.py
TTransportException('TSocket read 0 bytes',)
https://docs.python.org/3.7/library/ssl.html?highlight=sslwantreaderror
> TSSLSocket + TNonblockingServer does not support larger message in python
> -------------------------------------------------------------------------
>
> Key: THRIFT-4866
> URL: https://issues.apache.org/jira/browse/THRIFT-4866
> Project: Thrift
> Issue Type: Bug
> Components: Python - Library
> Affects Versions: 0.11.0
> Environment: python
> OpenSSL 1.0.2k-fips 26 Jan 2017
> Reporter: wenjieDeng
> Priority: Major
> Labels: patch
> Attachments: test_code.zip
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> I use Thrift API (TSSLSocket + TNonblockingServer) tested with python3.6.
> But when I try to send a message larger than 17kb from client to server, the
> client gets the error response message: "TSocket read 0 bytes".
> The problem also exists in python2.7
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)