Proxy server with dynamic memory buffer
AssigneeLightspeed Solutions, LLC
InventorKevin Sanders
Life of this patent
Estimating the term…
Abstract
Aspects of this disclosure improve modification of requested web content by utilizing an expanded memory buffer of a proxy server. A method may include receiving, by a proxy, web content requested by an application of a user device; initializing, by the proxy, a memory buffer of a first size to store a header of the web content; determining, by the proxy, a set of filtering rules associated with the user of the user device; determining, by the proxy, modified web content in accordance with the set of filtering rules, wherein the determining comprises, when the filtering rules specify modification of body content of the web content, performing operations comprising: expanding the memory buffer to a second size larger than the first size. Other aspects are also disclosed.
Claims17
A method, comprising:
- receiving, by a proxy, web content requested by an application for a user;
- initializing, by the proxy, a memory buffer of a first size to store a header of the web content;
- determining, by the proxy, a set of filtering rules associated with the user;
- determining, by the proxy, modified web content in accordance with the set of filtering rules, wherein the determining comprises, when the filtering rules specify modification of body content of the web content, performing operations comprising:
- expanding the memory buffer to a second size larger than the first size based on at least one of a hostname and a URL, wherein the expanding comprises increasing the buffer size based on the body content and based on expected modifications to the body content;
- storing the body content in the memory buffer;
- modifying the body content based, at least in part, on the set of filtering rules to form modified body content;
- and
- repackaging the modified body content with the header as the modified web content;
- and
- delivering, by the proxy, the modified web content to the application.
An apparatus, comprising:
- a memory storing processor-readable code;
- at least one processor coupled to the memory, the at least one processor configured to execute the processor-readable code to cause the at least one processor to perform operations include:
- receiving, by a proxy, web content requested by an application for a user;
- initializing, by the proxy, a memory buffer of a first size to store a header of the web content;
- determining, by the proxy, a set of filtering rules associated with the user;
- determining, by the proxy, modified web content in accordance with the set of filtering rules, wherein the determining comprises, when the filtering rules specify modification of body content of the web content, performing operations comprising:
- expanding the memory buffer to a second size larger than the first size based on at least one of a hostname and a URL, wherein the expanding comprises increasing the buffer size based on the body content and based on expected modifications to the body content;
- storing the body content in the memory buffer;
- modifying the body content based, at least in part, on the set of filtering rules to form modified body content;
- and
- repackaging the modified body content with the header as the modified web content;
- and
- delivering, by the proxy, the modified web content to the application.
A computer program product, comprising:
- a non-transitory computer readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:
- receiving, by a proxy, web content requested by an application for a user;
- initializing, by the proxy, a memory buffer of a first size to store a header of the web content;
- determining, by the proxy, a set of filtering rules associated with the user;
- determining, by the proxy, modified web content in accordance with the set of filtering rules, wherein the determining comprises, when the filtering rules specify modification of body content of the web content, performing operations comprising:
- expanding the memory buffer to a second size larger than the first size based on at least one of a hostname, and a URL, wherein the expanding comprises increasing the buffer size based on the body content and based on expected modifications to the body content;
- storing the body content in the memory buffer;
- modifying the body content based, at least in part, on the set of filtering rules to form modified body content;
- and
- repackaging the modified body content with the header as the modified web content;
- and
- delivering, by the proxy, the modified web content to the application.
Dependencies are inferred from the claim text.