Skip to content

Reuse TCP/IP socket connection and pipeline outgoing queries - #147

Merged
WyriHaximus merged 1 commit into
reactphp:masterfrom
clue-labs:tcp-reuse
Aug 11, 2019
Merged

Reuse TCP/IP socket connection and pipeline outgoing queries#147
WyriHaximus merged 1 commit into
reactphp:masterfrom
clue-labs:tcp-reuse

Conversation

@clue

@clueclue commented Aug 9, 2019

Copy link
Copy Markdown
Member

The TcpTransportExecutor will now keep the TCP/IP socket connection to
the DNS server open for a short period. Additional queries can reuse the
same socket connection and pipeline multiple queries over this single
socket. This avoids creating multiple socket resources for concurrent
requests and implies the TCP/IP connection overhead only applies once
instead of for each query. Among others, this helps avoiding excessive
resources and significantly improves query performance when using
multiple (concurrent) queries.

This implements RFC 7766 as per https://tools.ietf.org/html/rfc7766
Builds on top of #145
Refs #19

@clueclue added this to the v1.2.0 milestone Aug 9, 2019
@clue

clue commented Aug 9, 2019

Copy link
Copy Markdown
MemberAuthor

Updated to work around failing test on legacy PHP 5.3 due to partly closed socket resource :shipit:

Comment threadcomposer.json Outdated
The TcpTransportExecutor will now keep the TCP/IP socket connection to
the DNS server open for a short period. Additional queries can reuse the
same socket connection and pipeline multiple queries over this single
socket. This avoids creating multiple socket resources for concurrent
requests and implies the TCP/IP connection overhead only applies once
instead of for each query. Among others, this helps avoiding excessive
resources and significantly improves query performance when using
multiple (concurrent) queries.
This implements RFC 7766 as per https://tools.ietf.org/html/rfc7766
@clue
clue requested a review from WyriHaximusAugust 11, 2019 19:07
@WyriHaximus
WyriHaximus merged commit c94f002 into reactphp:masterAug 11, 2019
@clue
clue deleted the tcp-reuse branch August 12, 2019 07:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus