Re: HTTPS on Twisted



On 07:20 pm, koranthala@xxxxxxxxx wrote:
On Sep 6, 7:53 pm, koranthala <koranth...@xxxxxxxxx> wrote:
Hi,
   For a financial application,  I am creating a python tool which
uses HTTPS to transfer the data from client to server. Now, everything
works perfectly, since the SSL support comes free with Twisted.
   I have one problem though. As an upgrade, now, I have to send many
requests as the same client to the server. Many in the range of >10
msgs every second. Now, I am creating a separate TCP connection for
each and am sending the data. Is it possible to create just one SSL
and TCP connection and send each message over that using Twisted?
   I read through Twisted, but was unable to come up with the answer
though. Even if I have to use multiple TCP connections, is it possible
to have just one SSL connection?

   I think persistent connections should be possible for TCP, but is
it possible is Twisted?

You can probably get persistent http connections working with twisted.web.client (not with getPage or the other "convenience" functions though).

The new http client which is being developed will support this in a much simpler way. With a bit of luck (or maybe some additional help from people interested in a really high-quality http client), this should be included in Twisted 9.0 which I hope will be out very soon.

Jean-Paul
.



Relevant Pages

  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Banana Republic (was Re: OpenVMS Book Wins award)
    ... client ... No bollocks HTTP, SOAP, XML, Java, Garbage ... receive messages from any number of server processes who in turn could be ... Unlike TCP/IP and/or UDP Sockets with Java that have been around since ...
    (comp.os.vms)
  • Re: MDX Sample App broken by 2005
    ... You might find it useful as an alternative to http ... Windows authentication wouldn't work since client and server are ... > different non-trusted domains. ...
    (microsoft.public.sqlserver.olap)
  • Re: MSAS Licensing Part II
    ... wish to use http access then you must have Enterprise Edition. ... PTS looks at the server name. ... You will note that all of this is totally transparent to the client. ...
    (microsoft.public.sqlserver.olap)
  • Re: Ajax in sync mode works with IE, does not work with Firefox
    ... HTTP is sessionless. ... does its close or half-close, the HTTP server will get a FIN (modulo ... then the server would be notified of socket disconnection ... If it's a stream socket, over TCP, then if the client closes its end, ...
    (comp.lang.javascript)