rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: HosterMost on March 07, 2007, 10:18:30 AM

Title: Speed problem using SSL with Stunnel (think I know why, but dont know solution)
Post by: HosterMost on March 07, 2007, 10:18:30 AM
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
Title: Re: Speed problem using SSL with Stunnel (think I know why, but dont know soluti
Post by: HosterMost on March 07, 2007, 11:51:21 AM
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.
Title: Re: Speed problem using SSL with Stunnel (think I know why, but dont know solution)
Post by: maverick on March 07, 2007, 12:12:01 PM
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.
Title: Re: Speed problem using SSL with Stunnel (think I know why, but dont know soluti
Post by: HosterMost on March 07, 2007, 12:19:05 PM
?
Please see my reply to my post....I believe you skipped it Maverick. Cheers
Title: Re: Speed problem using SSL with Stunnel (think I know why, but dont know soluti
Post by: HosterMost on March 14, 2007, 06:56:56 AM
bump :(
Title: Re: Speed problem using SSL with Stunnel (think I know why, but dont know solution)
Post by: rejetto on March 22, 2007, 10:48:47 PM
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.