P
P
PO6OT2015-06-20 18:42:08
PHP
PO6OT, 2015-06-20 18:42:08

Can php receive and immediately process part of a request without waiting for the request to finish receiving?

If a gray IP server sends a request to a white IP server, can the white IP server send a response indefinitely, thus creating a persistent tunneling connection?
Can php receive and immediately process part of the request without waiting for the end of receiving the request, since one server response lasts forever and, of course, it must be processed in parts?
Main question.
All questions on the topic:
How to use PHP on a hosting with a "white" IP to make an http tunnel to connect to a server with a "gray" IP, which is behind NAT'om?
How to get http access to a server with a gray IP from the Internet by any means?
There is a technology of clustering. How to optimize it?
How to create a persistent tunneling connection using php?
Will NAS timeouts interfere with my tunneling?
Can php receive and immediately process part of a request without waiting for the request to finish receiving?
Can php send information in chunks?
Most recent discussion.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2015-06-21
@woonem

as you wrote in your other question - better use the nodejs net module - and you can easily create long-lived sockets and process data as it arrives, without dancing with tambourines.
If you don't live, you don't need to be in php, then it's better to move towards sockets. use for example phpDaemon or any equivalent.
well, another hardcore option that works out of the box is the implementation of sockets, it also works with pzp 4
php.net/manual/en/function.socket-connect.php
4 .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question