Hacker News new | past | comments | ask | show | jobs | submit login

I'm not sure: isn't it faster to just refuse the request than directing it to localhost and waiting for a time out?



As long as you don't have a firewall blocking traffic to/from localhost, the TCP connection will be reset almost immediately (assuming you don't have an httpd running on port 80) so you won't have to wait for a timeout.


That's the point. We'd like to see which is faster.


localhost will RST the connection just fine, provided you don't have a webserver listening there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: