Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

this one:

 (def serve ((o port 8080))
   (nil! quitsrv*)
   (ensure-dir logdir*)
   (let s (open-socket port)
     (prn "ready to serve port " port) (flushout)
     (= currsock* s)
     (after (while (no quitsrv*)
              (if breaksrv*
                  (handle-request s)
                  (errsafe (handle-request s))))
            (close s)
            (prn "quit server"))))


Perlbal (or something else) proxying requests would be a quick way to add support. Probably not worth the hassle on news.yc. No pages are that big and I doubt bandwidth usage is killing you.


ycombinator.com seems to be running Apache/2.2.4 on FreeBSD ( http://uptime.netcraft.com/up/graph?site=www.ycombinator.com ), in which case your best option is using the mod_gzip module: http://www.schroepl.net/projekte/mod_gzip/


What part of "this one" don't you understand? :)

www.ycombinator.com is not necessarily news.ycombinator.com.


Apache just got owned.




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

Search: