title: Request timeout issue with the post rest API request
body: <p>My application environment is Tomcat 7.0, JDK 1.7. I am using Jersey for the REST API.  One of our post type REST API request takes the processing more than 3 minutes, and it is just approx time, it can be more than 3 minutes. Then we send the response back to the client when our request processing is completed. but here request processing take 3 minutes so I got the request time out at the client side , and I do not get any response from the server , as I expected to success response </p>
  
  <p>Request processing at server is like below:</p>
  
  <p>Start the request </p>
  
  <ol>
  <li>Insert details to db table [this process taking time in seconds] </li>
  <li>Copying files to remote computer server [this process taking 3 minutes] </li>
  <li>Update/active the files [this process taking time in seconds] </li>
  <li>Send response to the client </li>
  </ol>
  
  <p>End the request processing </p>
  
  <p>All the above process must be in transaction , so we can not remove any of the above process, </p>
  
  <p>We had already improve the best performance for Step 2 of the process , and it only happens, when we request with the more than 1 gb size file. </p>
  
  <p>As of now for the temporary solution we had increase the timeout value which is configured in the Apache server. </p>
  
  <p>Now I am looking for the solution of my issue, with any of the following  approach:</p>
  
  <ol>
  <li>Suggest me any development or implementation strategies which can resolve the my issue and it should be expected as described me? </li>
  <li>How do I tackle the request time out issue? </li>
  <li>Looking for the solution which notify the client from the server side , when the  response is done? </li>
  <li>Looking for the solution which can not close the connection between client and the server with the Jersey REST API implementation? </li>
  </ol>
  
  <p>Thanks &amp; regards 
  Yatin Baraiya </p>