SSL Is Slow! My Fault?

SSL Is Slow! My Fault?

Author

Message

Doug For#1 / 4

SSL Is Slow! My Fault?

I'm attempting to implement SSL in our website testing system. It seems to be working but it's really slow. The attached example takes over 16 seconds against our in-house test page. Against one of our potential clients it took over 80 seconds just for HTTPSConnection.getresponse().

I built this from the ActiveState source distro on RedHat 7. Could I have messed it up in some way? Does anyone have an example of an SSL client done right?

There's about 3 times more traffic with HTTPS + encrypt/decrypt software components running. You'll notice that most pages on "good" sites available through HTTPS are lightweight (no GIF/JPG...).

Quote:

> I'm attempting to implement SSL in our website testing system. It seems > to be working but it's really slow. The attached example takes over 16 > seconds against our in-house test page. Against one of our potential > clients it took over 80 seconds just for HTTPSConnection.getresponse().

> I built this from the ActiveState source distro on RedHat 7. Could I > have messed it up in some way? Does anyone have an example of an SSL > client done right?

The HTTP 1.0 code is MUCH faster. See the attached example. It runs in .03s compared to 16+s for the HTTP 1.1 code. There's something going on here that I don't understand, and it's more than sheer volume. I'd really like to use (1.1) httplib.HTTPSConnection instead of (1.0) httplib.HTTPS, because I can't get the Keep-alive code I wrote for the Python 1.52 version of httplib.HTTP to run with the Python 2.0 version of hhttplib.HTTP.

Quote:

> Hi,

> There's about 3 times more traffic with HTTPS + encrypt/decrypt software > components running. > You'll notice that most pages on "good" sites available through HTTPS are > lightweight (no GIF/JPG...).

>> I'm attempting to implement SSL in our website testing system. It seems >> to be working but it's really slow. The attached example takes over 16 >> seconds against our in-house test page. Against one of our potential >> clients it took over 80 seconds just for HTTPSConnection.getresponse().

>> I built this from the ActiveState source distro on RedHat 7. Could I >> have messed it up in some way? Does anyone have an example of an SSL >> client done right?

> The HTTP 1.0 code is MUCH faster. See the attached example. It runs in > .03s compared to 16+s for the HTTP 1.1 code. There's something going on > here that I don't understand, and it's more than sheer volume. I'd > really like to use (1.1) httplib.HTTPSConnection instead of (1.0) > httplib.HTTPS, because I can't get the Keep-alive code I wrote for the > Python 1.52 version of httplib.HTTP to run with the Python 2.0 version > of hhttplib.HTTP.