Skip to content

support HTTP timeouts (or other request options) #48

Description

@jbcpollak

I would like to be able to control the request timeout from the client side, but it appears loopback-connector-remote does not expose this functionality - It looks like strong-remoting doesn't allow the user to add fields to the request options object, that might be by design, but I think it would be useful to expose timeout and possibly a few other fields.

The lack of a timeout is causing me problems right now - the remote call doesn't timeout in a reasonable time, and my unit test actually times out before the call does, so I couldn't even see the root cause of the error, just that the test died. Now that I've figured that out, I'd like to set my timeout to be ~5 seconds (unit test timeout is 15 seconds), so that in the future this would be catchable.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions