How to prevent timeout error?


I am using puma server in rails application. The problem i am facing is request timeout. I want to wait until the server action is complete. How can i increase the timeout? Please follow the following link for the details. I appreciate any help! Thanks!