发明名称 SOCKET PROCESSING METHOD AND DEVICE AND WEB SERVER
摘要 A method for processing a Socket and apparatus and a Web server are provided. The method for processing a Socket is applied in a Web server. The Web server is based on a platform for providing an asynchronous unblocking-mode Socket. 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, so that the Web task can be activated, and a corresponding procedure is processed according to the Socket event. In the embodiments of the present invention, when an exception occurs at a client, a Web server can still be accessed.
申请公布号 EP2899944(A1) 申请公布日期 2015.07.29
申请号 EP20130851976 申请日期 2013.08.26
申请人 ZTE CORPORATION 发明人 MA, WENJUAN
分类号 H04L29/08;G06F17/30;H04L12/06;H04L29/06;H04W12/08 主分类号 H04L29/08
代理机构 代理人
主权项
地址