Skip to content

关于select  #2

Description

@dulei0508

select 的readset,在TCP连接建立后,没有数据可读的情况下,它也认为该连接当前状态可读吗?
比如,我在接收到客户端数据后,并不close,但是客户端不再发数据,这时候,select 返回值为当前没有关闭的TCP连接数。这一点很迷惑,不是socket内核接收缓存区中的字节数大于或等于其低水位标记SO_RCVLOWAT,才认为可读吗? 都没数据了,为什么还可读呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions