Skip to content

nclua/event/tcp_socket.c: Cancel pending operations on disconnect_finished() #5

@gflima

Description

@gflima

The disconnect_finished() function should cancel pending send or receive operations. Otherwise, the "disconnect" event will cause these operations to fail with "Socket closed" error. Currently, to avoid reporting such errors, we check if the socket is connected before dispatching errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions