Skip to content

EAGAIN / EWOULDBLOCK Error #44

@stamhankar999

Description

@stamhankar999

A user running v2.1.5 of the DataStax Ruby driver encountered a 'write would block' error message when communicating with a node. We believe the underlying error is an EAGAIN or EWOULDBLOCK when attempting to write to the socket.

Looking at the ione code (v1.2.0 for C* driver 2.1.5), I don't see how we could end up with that error -- writes seem rely strictly on select returning a write-fd-set, so if the fd isn't writable, it shouldn't get a write attempt.

Nonetheless, it seems like in some cases it does get this error, so ione should catch it and drop it. Presumably a later write attempt will succeed as time elapses and the kernel buffer for the socket gradually empties.

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