Skip to content

Persistent Redis connections on FrankenPHP with ZTS #2150

@AlexVanderbist

Description

@AlexVanderbist

Hi!

I've been investigating long Redis connection times on a couple of apps running FrankenPHP in classic mode. I've found that the bulk of the connection time is spent on the TLS handshake + DNS resolution. It's about a 10ms to 50ms overhead on a regular non-TLS, direct to IP Redis connection. This usually isn't an issue thanks to persistent Redis connections and connection pooling. However, on the phpredis docs I read the following:

This feature is not available in threaded versions. pconnect and popen then work like their non persistent equivalents.

As FrankenPHP is built using a ZTS enabled PHP runtime, am I right to assume persistent Redis connections are not supported?

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