O'Reilly logo

Mobile Web Performance Optimization by S. Niranga

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Closing connection

Most of the time, many mobile applications leave their connections open after they have transmitted necessary data. This usually happens if we don't close the connection manually, once our transmission is completed.

As a practice, you need to always close the opened connection as soon as possible once the transfer is completed. Promptly closing connections eliminates you from having to open the purpose of closing connection due to timeouts. By discarding as many of these inefficient connections as you can will help you to save energy and optimize your application.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required