How epoll detect clientside close in Python?

后端 未结 10 568
清歌不尽
清歌不尽 2021-02-04 21:22

Here is my server

\"\"\"Server using epoll method\"\"\"

import os
import select
import socket
import time

from oodict import OODict

addr = (\         


        
10条回答
  •  别跟我提以往
    2021-02-04 21:30

    elif event & (select.EPOLLERR | select.EPOLLHUP):
        epoll.unregister(fileno)
        cs[fileno].close()
        del cs[fileno]
    

提交回复
热议问题