Skip to content

Warning when configuration FCM: Cannot modify client configuration after client has been used #35

@sroebert

Description

@sroebert

When setting the configuration of FCM, I get the warning from Vapor: Cannot modify client configuration after client has been used..

This happens because FCM is trying to set application.http.client.configuration.ignoreUncleanSSLShutdown to true after using the application.client property in the following code:

public init(application: Application) {
    self.init(application: application, client: application.client)
}

I'm wondering, does this configuration really need to be set to true in the first place (as there is no documentation on why this is done)? If it is needed, this code probably needs to be moved to the public init with the application, to avoid the warning and actually setting the value to true.

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