Skip to content

Sporadic bursts of error: socket timed out waiting on response #171

Description

@cmawhorter

i've been getting random bursts of many errors from memjs with "socket timed out waiting on response".

  • remote memcached server
  • keepAlive enabled
  • timeout set 2s

additionally, i am dealing with objects that are usually small, but sometimes up to 6MB.

after looking through the memjs code, i think this is user error on my part since i'm guessing it's taking longer than 2s to receive the complete response for a get op in some situations.

in my case, i'll probably set the timeout to something very high like 60s, since i primarily use just get/set. but that won't be ideal if an incr/decr/delete/etc takes a minute to fail.

a doc change might be nice though. my reading of timeout dumbly assumed it was time until the server acknowledged/started processing an operation, and not the end-to-end total operation timeout. maybe mentioning that the default timeout may not be appropriate depending on object size and network servers or whatever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions