im working on a client/server program that consists of a shop and a database. the problem arises when browser initiates a http post method to shop and the shop establishes a connection to database. the database meant to authorize the purchase and so on then send a reply back to the shop. once the shop receives this reply, it should act accordingly by replying an appropriate http response to the browser.
however, upon hitting the submit button on the browser side, it seems waiting endlessly. i have to issue another command like another get request in order to get this previous post done. the database then would process the post form and signal back to shop. but my shop would throw a java.net.SocketException: Broken Pipe and the browser wont be getting any reply from the shop.
So, can someone please tell me what goes wrong?