Patent ID: 8850029

Claim:
A computer program product, embodied on a non-transitory computer readable medium, that, when executed, causes a processor to perform a method comprising: receiving a connection request from an application, at a proxy, wherein the connection request is associated with exchanging data; setting a rank for the application to a default rank, in response to a determination that the connection request is a first request from the application; increasing the rank, after each reception of a number of connection requests from the application over a first predetermined time period; identifying whether the application is a peer-to-peer application at least based on the rank; determining a priority of a connection of the connection request, at the proxy, at least based on whether the application is the peer-to-peer application; attempting the connection, at the proxy, in an order at least based on the priority of the connection; calculating a timeout value for the connection inversely proportionate to the rank, wherein the timeout value is utilized for determining a time period in which the connection is to be attempted; and decreasing the rank, if a second predetermined time period has elapsed.