D
D
Daria Motorina2020-04-25 21:08:33
PHP
Daria Motorina, 2020-04-25 21:08:33

How does php keep a long TCP connection over sockets?

Good evening!

I analyze RabbitMQ manuals, read about long TCP connections that are reused to save network resources.
I'm trying to understand how PhpAmqpLib reuses the source connection, but the problem of my misunderstanding is deeper - where does the connection "live" after the php script has completed? Those. I have a contradiction in that php does not live as a process, and the socket information is stored somewhere.

Can you tell me where it can be read?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-06-13
@glaphire

Answer: The TCP connection is maintained by the life of the script, in this case, the worker (consumer)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question