Thanks for your reply.
I solved the problem. It was my mistake. I was making use of Qt's fortune client example for testing my server.It was making a new connection when ever a new request is send. Actually I wanted all requests from same connection to be handled by a particular client. Thanks once again.
Bookmarks