Patent ID: 9282151
Filing Date: 2016-03-08
CPC Classification: H04L

Claim Text:
1. A computer implemented method for managing requests, the computer implemented method comprising: responsive to receiving a request from a client, determining whether a connection within a pool of connections has an outstanding request from the client; responsive to a determination that the connection has the outstanding request, determining whether a set of requests queued for the connection is equal to or exceeds a threshold; responsive to a determination that the set of requests is equal to or exceeds the threshold, failing to process subsequent requests from the client until the set of requests becomes less than the threshold; responsive to a determination that the connection with the outstanding request is absent, placing the request in a queue for a free connection; responsive to the determination that the connection with the outstanding request is absent, determining whether a free connection is present to handle the connection; and responsive to a determination that the free connection is absent, failing to read any additional requests from all clients until the free connection becomes available, wherein the step of failing to read any additional requests from all clients until the free connection becomes available comprises: setting a wait flag, wherein the wait flag results in sockets to the client remaining unread; waiting for the free connection to become available; and responsive to the free connection becoming available, clearing the wait flag.