hi Jon, Thanks for your response. Actually, I was expecting that Thin would communicate with Merb on unix domain sockets (to enable back-end keep alive connections) and still listen for client requests on network port (4000 in my case). And if you see the console output in my initial post, it does give an impression that Thin has started listening on port 4000. And I was surprised to find that port 4000 was not in use at all!
My main app (which is in production) anyways uses Nginx as a proxy, so eventually I was targeting to have my Thin+Merb combo behind that (as you suggested). But I just wanted to test keep alive connections first before tweaking my production configuration to start proxying specific requests to the Thin+Merb combo. Sadly, I just figured out that Nginx doesn't support back-end keep alive connections yet, so that's a major setback. But still, just for the sake of information that we could use some day, I would still like to know if it's possible to have Thin listen for client requests on a network port and communicate with Merb via unix domain sockets? I was away so didn't respond for a while, sorry abt that. thanks Amit On Oct 24, 4:30 pm, Jonathan Stott <[email protected]> wrote: > On Fri, 23 Oct 2009 08:33:37 -0700 (PDT) > > Amit <[email protected]> wrote: > > > Hi Pavel, > > > I need to specify socket to be able to use keep-alive (persistent > > connections). > > Thin is capable of using keep-alive but only with unix domain sockets. > > Hope I'm clear. > > > thanks > > Amit > > A unix domain socket is socket which is used only for local connections. It > isn't bound to a network port, so not being able to connect to one using the > network is to be expected. If thin only supports keep-alive with unix domain > sockets, you'll need to put some kind of a proxy in front of it (e.g. nginx) > which will actually bind to the network port and allow remote communication. > You also need to make sure you're doing things like setting a Content-Length > header. I'm not sure, off hand, if merb does this for you. > > Regards > Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
