Skip to content

Add Curl connect timeout configuration option for PHP Client #4499

@brianvoss

Description

@brianvoss
Description

If a service is down, we want the client to fail quickly so the requesting app doesn't hang. This means that the Curl timeout setting is not enough. Would like to add this setting inline with the existing Curl timeout setting in the PHP mustache templates.

Swagger-codegen version

dev-master

Swagger declaration file content or url

N/A

Command line used for generation
./run-in-docker.sh "generate -i /gen/myservice-swagger/main -l php -o /gen/myservice-client/php/ -c php-config.json"
Steps to reproduce

N/A

Related issues

N/A

Suggest a Fix

I have the code for this ready and can file a PR asap

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions