Connection timeouts limit how long to wait to establish a connection, while request timeouts limit how long to wait for a response.
Connection timeouts prevent your application from waiting indefinitely to establish a connection to a server. Request timeouts prevent long waiting periods for a server response after a connection is established. In an e-commerce app, setting a connection timeout helps ensure that your application doesn't hang when trying to connect to a payment gateway.