Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I setup stunnel on OSX to tunnel traffic to my Django dev server because Facebook needs HTTPS these days but I noticed it's being absurdly slow. It seems like it can only handle a single connection at a time and even the connection is slow when I'm connecting to localhost. I've tried using some performance tips found online and so my config is setup as:

pid=
# foreground=yes
cert=./cacert.pem
key=./privkey.pem
libwrap=no
debug=0
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

[https]
accept=8443
connect=8000

Is there a way to get more performance or more suitable way of setting up HTTPS for my dev server?

share|improve this question
    
Any reason you didn't just set up your HTTP server to serve HTTPS as well? Seems that'd be the simplest way to me. –  Matthew Scharley Nov 8 '11 at 2:44
    
Whats the system load? How can you be sure that its stunnels fault? Its also possible that Facebook is slow, some areas are pretty bad for Facebook, what with a good 600,000,000 users. –  Silverfire Nov 8 '11 at 3:06
    
Do you know how to use packet capture tools like wireshark to identify potential problems? –  Silverfire Nov 8 '11 at 3:07
    
@MatthewScharley The django dev server doesn't support HTTPS, it's bare bones. –  Kit Sunde Nov 8 '11 at 3:18
    
@Silverfire There is no server load, it's running locally on my machine with only me sending requests to it. It runs way faster over HTTP it doesn't need to go through stunnel. –  Kit Sunde Nov 8 '11 at 3:18

1 Answer 1

up vote 0 down vote accepted

I was never able to solve this on my mac, but I remember faintly that I figured stunnel had some issue with OSX that I couldn't work around. In the end I ended up using nginx.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.