Skip to content

STREAM_CLIENT_PERSISTENT #7

@lexna

Description

@lexna

I found out that if you change line 43 from:

: ($this->socket = stream_socket_client($this->server));

to

: ($this->socket = stream_socket_client($this->server, $errorno, $errorstr, NULL, STREAM_CLIENT_PERSISTENT));

connection will stay alive and it will work much faster in sequential requests.

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