Hi all,
I am implementing a HTTP caching proxy server in C++.I am done with most part of it but i am stuck at a point.
What i am doing is creating each thread with a socket to handle each time a request from browser comes. I parse the request, check for its availability in cache and if not found forward it to end www server.In both cases i write the response received on the connected socket. Now the problem is until and unless i close the socket, the browser doesn't assumes the transfer to be complete and waits indefinitely.
This way I can't use a socket for more than one connection, in other words I can't support persistent connections.
Any help will be appreciated..
Thanks,