In Java I'm using HttpClient, and I have set a connection timeout and socket timeout for this object. When I call the execute method, it hits my server-side code, which creates an another thread to handle my server logic, and if socket timeout exception occurs, my client-side is going into catch, where I stop further execution, and my server-side thread executes through the end of the code.
Is there any way I can stop execution on my server-side, if connection timeout occurs.