[ https://issues.apache.org/jira/browse/AVRO-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835977#action_12835977 ]
Eric Evans commented on AVRO-423: --------------------------------- {quote} httplib can only send a single POST message over an HTTPConnection {quote} Are you sure? That doesn't sound right at all. {quote} Which patch am I supposed to look at? {quote} The first patch (v1-0001-AVRO-423.-reuse-existing-http-connections.txt) is the one that makes it so that you can reuse connections. The important part is the final read() on the response which is necessary to satisfy httplib's state machine (see the little ascii art diagram in the module docstrings). The second patch merely creates the HTTPConnection instance in the __init__() of the transceiver, which seems like better encapsulation to me, YMMV. > HTTPTransceiver does not reuse connections > ------------------------------------------ > > Key: AVRO-423 > URL: https://issues.apache.org/jira/browse/AVRO-423 > Project: Avro > Issue Type: Bug > Components: python > Affects Versions: 1.3.0 > Reporter: Eric Evans > Fix For: 1.3.0 > > Attachments: v1-0001-AVRO-423.-reuse-existing-http-connections.txt, > v1-0002-AVRO-423.-generate-connection-instances-in-transceiver.txt > > > The Python libs HTTPTransceiver creates a new connection for each request. > Patch to follow. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.