Socket processing method and device and web server
AssigneeZte Corporation
InventorWenjuan Ma
Life of this patent
Estimating the term…
Loading patent…
AssigneeZte Corporation
InventorWenjuan Ma
Estimating the term…
A method for processing a Socket, an apparatus for processing the Socket and a Web server is provided. The method includes: monitoring a client request of a port of the Web server; according to the monitored client request, registering a Socket event through an asynchronous selection operation; judging whether the Socket event is a READ event and/or a WRITE event, to obtain a judgment result; when the judgment result indicates that the Socket event is a READ event and/or a WRITE event, starting timing; and when the timing reaches a preset threshold and the Web task does not receive a first semaphore sent by a Socket underlying layer, sending a second semaphore to the Web task, to enable the Web task to be activated, and processing a corresponding procedure is processed according to the Socket event; closing the Socket event.
A method for processing a Socket, applied in a Web server, wherein the Web server is based on a platform for providing an asynchronous unblocking-mode Socket;
Dependencies are inferred from the claim text.