Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question