[twsocket] SSL post extremely slow

2016-04-14 Thread zayin
> I updated the FTP client buffers to 32K several years ago for better
performance.

Yep this was 2011 and it made a huge difference for me.

http://marc.info/?l=twsocket=131146591403948=2

And your response:

Log:
- Added published property DataSocketSndBufSize and public property
  DataSocketRcvBufSize. Increase DataSocketSndBufSize in order to 
  make uploads faster. Both values default to value 8192 which is the
  default winsock size.


http://marc.info/?l=twsocket=131152163805666=2



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL post extremely slow

2016-04-14 Thread brian -
Further testing: to rule out an SSL issue I made a small script to upload
to my server through http, no ssl involved, same 3MB file:

ics 45.8s
indy 4.6s
synapse 4.2s
WinInet 2.2s

On Thu, Apr 14, 2016 at 10:00 AM, Stephen Dickason 
wrote:

> I'm not sure if anyone knows, but I can suggest - if you have the time and
> patience to investigate yourself - two tools that I'd use:
> freeware Synopse mORMot framework - has a time Logging profiler
> (synLog.pas) that will show the Delphi program internals times. (It has
> some known naming clashes with some Delphi internals though)
> Magenta Systems Internet Packet Monitoring Components - should allow you
> to check the network traffic coming from your SSL setups (Delphi or
> otherwise) from a separate program and will allow you to try and do some
> deeper investigations as to which part of the communications is taking the
> most time.
>
> Not saying it will be easy and the tools have their own learning curves
> and need for tweaking too.
> HTH
>
>
> Stephen Dickason
> Senior Developer - Managed Services
>   Email: sdicka...@elcb.co.za
>
> ELCB Information Services (Pty) Ltd
> Customer Service Email  e...@elcb.co.za * www.elcb.co.za
> E A S T  L O N D O N
> Tel: +27(43) 704 0700
> Fax: +27(43) 704 0701
> J O H A N N E S B U R G
> Tel: +27(11) 879 6179
> Fax: +27(11) 454 0384
> P O R T  E L I Z A B E T H
> Tel: +27(41) 373 0529
> Fax: +27(86) 650 0135
> Disclaimer
>
> > -Original Message-
> > From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of
> brian
> > -
> > Sent: 14 April 2016 00:26
> > To: ICS support mailing
> > Subject: Re: [twsocket] SSL post extremely slow
> >
> > Synapse (OpenSSL) ~7 seconds.
> >
> > On Wed, Apr 13, 2016 at 2:07 AM, brian -  wrote:
> >
> > > Update: sending through WinInet in my project: 6-7 seconds. What could
> > > be the issue with ICS?
> > >
> > > On Wed, Apr 13, 2016 at 12:47 AM, brian - 
> wrote:
> > >
> > >> Are there any known issues with SslHttpCli for sending data? I've
> > >> observed the following:
> > >>
> > >> Sending a 3MB picture to imgur:
> > >>
> > >> * with ICS/OpenSSL: takes ~27 seconds
> > >> * with Indy/OpenSSL: 8-10 seconds (didn't send correctly though so
> > >> can't confirm 100%, but the post part did take that long nonetheless)
> > >> * another app which I presume uses WinInet rather openssl: 6-7
> > >> seconds
> > >>
> > >> Using OpenSSL 1.0.2f and a very recent ICS from the svn
> > >>
> > >> Any ideas?
> > >>
> > >
> > >
> > --
> > To unsubscribe or change your settings for TWSocket mailing list please
> goto
> > http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SSL post extremely slow

2016-04-14 Thread Angus Robertson - Magenta Systems Ltd
> Are there any known issues with SslHttpCli for sending data? 

It seems the component still uses 8K buffers for receiving and sending
data, which was fine 15 years ago when we used slow modems and 10Mb
ethernet, but larger buffers would be more efficient with current
internet speeds.  

I updated the FTP client buffers to 32K several years ago for better
performance.  The HTTP buffer should probably be increased similarly,
or made customised in size to allow the optimum size to be found.  

I'll put it on my long list, unless someone else has the time.  I'm
working on SSL at the moment. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be