From dev-return-56201-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Tue Jun 18 10:28:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id F41C018076D for ; Tue, 18 Jun 2019 12:28:01 +0200 (CEST) Received: (qmail 13947 invoked by uid 500); 18 Jun 2019 10:28:01 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 13926 invoked by uid 99); 18 Jun 2019 10:28:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2019 10:28:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 65CBCE2DB6 for ; Tue, 18 Jun 2019 10:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 28CD92465F for ; Tue, 18 Jun 2019 10:28:00 +0000 (UTC) Date: Tue, 18 Jun 2019 10:28:00 +0000 (UTC) From: "Giorgi Grigalashvili (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (THRIFT-4890) AttributeError: 'Connection' object has no attribute 'message' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-4890?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Giorgi Grigalashvili updated THRIFT-4890: ----------------------------------------- Environment: Ubuntu Linux 18.10 64-bit (was: {code:java} Ubuntu Linux 18.10 64-bit{code} =C2=A0) > AttributeError: 'Connection' object has no attribute 'message' > -------------------------------------------------------------- > > Key: THRIFT-4890 > URL: https://issues.apache.org/jira/browse/THRIFT-4890 > Project: Thrift > Issue Type: Question > Components: Python - Compiler > Affects Versions: 0.12.0 > Environment: Ubuntu Linux 18.10 64-bit > Reporter: Giorgi Grigalashvili > Priority: Major > Labels: Connection, Newbie, Python3, Question > > As part of my university research I'm using Thrift v0.12.0 to communicate= between Python server and Scala client.=C2=A0 > The data my service is=C2=A0providing to client is lists of thrift object= s/structs,=C2=A0those lists contain ~1M items. The issue bellow is produced= if I'm sending full lists(more than ~60k items) of data, however if I decr= ease list items to ~60k everything works fine.=C2=A0 > {code:java} > Traceback (most recent call last):=20 > File "Server.py", line 40, in =20 > server.serve()=20 > File "thrift/server/TNonblockingServer.py", line 370, in serve=20 > self.handle()=20 > File "thrift/server/TNonblockingServer.py", line 350, in handle=20 > self.clients[writeable].write()=20 > File "thrift/server/TNonblockingServer.py", line 88, in read return=20 > func(self, *args, **kwargs)=20 > File "thrift/server/TNonblockingServer.py", line 177, in write=20 > self._wbuf =3D self.message[sent:]=20 > AttributeError: 'Connection' object has no attribute 'message' > {code} > This is my server configuration: > {code:java} > ip =3D '127.0.0.1' > port =3D '9000' > handler =3D MyHandler() > processor =3D MyService.Processor(handler) > transport =3D TSocket.TServerSocket(host=3Dip, port=3Dport) > tfactory =3D TBinaryProtocol.TBinaryProtocolFactory() > pfactory =3D TBinaryProtocol.TBinaryProtocolFactory() > server =3D TNonblockingServer.TNonblockingServer(processor, transport, tf= actory, pfactory) > server.serve() > {code} > Now my question is as follows, am I doing something wrong or could it be = that it's an issue from Thrift? Any ideas how can I resolve this problem or= what I could be doing wrong? > Thanks in advance. -- This message was sent by Atlassian JIRA (v7.6.3#76005)