>
> 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