On Tue, Apr 23, 2013 at 10:31:52AM +0400, Md Mahbubul Islam wrote: > Hi Willy, > Thank you very much for your reply. Your assumption is correct . I am using > TCP. The load-balancer and all other servers are Java socket servers. From > your mail I got the idea that if I could pass the client's file descriptor > to the desired server and establish connection between the client and the > new server , it might be possible to disconnect the load balancer from > client. I will do some more research on it. And if you have any idea about > how I can pass the file descriptor between different servers and establish > connection between the new server and the client , will be helpful.
As I said, this can only be done over UNIX sockets, not over TCP sockets. Someone has asked here some time ago that we implement this into haproxy and it's not that far from being possible. You should look at man 7 unix and search for SCM_RIGHTS, you'll find there everything you need to pass an fd over a unix socket. Willy

