Skip to content

Lambda Timeout #760

Open
Open
@grahamburgsma

Description

@grahamburgsma

Describe the bug

Setting the timeout on Lambda doesn't have any effect if it's shorter than the connection timeout set by the HTTPClient. In other cases this makes sense, but since a Lambda doesn't respond until it's complete it hits the connection timeout, which is unexpected.

To Reproduce
Steps to reproduce the behavior:

  1. Create Lambda client Lambda(...timeout: .seconds(300))
  2. Invoke long running lambda function

It hits HTTPClientError.readTimeout at the default connectionTimeout of 90 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions