rejetto forum

Speed problem using SSL with Stunnel (think I know why, but dont know solution)

0 Members and 1 Guest are viewing this topic.

Offline HosterMost

  • Occasional poster
  • *
    • Posts: 12
    • View Profile
Got SSL setup as shown in this thread:
http://www.rejetto.com/forum/index.php?topic=3083.0

Came across a very annoying problem.
When using HTTPs: for UPLOADING I get full speed.
When using HTTPs: for DOWNLoADING the speed in cut drastically, 20x slower.

The odd thing is, multiple downloads can go at once eg: 20 connections @80kb/second
However no single connection will get over 80 or 100kb/second

Uploading, as stated works flawlessly.

I searched the net and couldn't find a solution, but continuously came across mention of "loopback" problems, or saying stuff about Microsoft winsock, found a few mentions of VNC server having an option to "enable loopback connections"
http://www.codeproject.com/useritems/securevncviewer.asp
(1 of zillions of link)

Another thing I saw but closed (oops) was mention of disabling an HTTP server in order to avoid loopback problems with HTTPS serving.
(YES!!!!!! I saw the post here about using  a router to NOT forward port 80 thus disabling http from the outside, but the http server would still actually be RUNNING creating a loopback issue with HTTPS via stunnel)

Thank you


Offline HosterMost

  • Occasional poster
  • *
    • Posts: 12
    • View Profile
K, have lots of hope
#1, uploading works perfect
#2 just downloaded demo of Easy File Sharing Web Server and the download speed works through HTTPS.

I have no clue as to how to fix this, saw one entry in the stunnel config at their site:
socket = a:SO_BINDTODEVICE=lo
does NOT work, the stunnel won't start, weird.


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
With a SSL connection,  "everything"  transfered (both up and down) is  "encrypted on-the-fly"  before it is transmitted over the internet.   As a result of the on-the-fly encryption, there will be a slow down in transfer speed which IMHO is a small sacrifice when a secure connection is needed.   How much of a slowdown experienced would also depend on the power and speed of your system.
« Last Edit: March 07, 2007, 12:44:40 PM by maverick »
maverick


Offline HosterMost

  • Occasional poster
  • *
    • Posts: 12
    • View Profile


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
loopback = from here, to here = local connection

Stunnell may be the reason of the slowdown. Try using stunnell over EasyFileSharing and see if the problem persists.