Home > Backend Development > PHP Tutorial > php-PHP中fread在等待时为什么会再建两次连接?

php-PHP中fread在等待时为什么会再建两次连接?

WBOY
Release: 2016-06-02 11:31:35
Original
1175 people have browsed it

php

PHP中,我用pfsockopen和服务器建立了一个连接,然后用fwrite对连接进行发送,最后用fread等待服务器返回的数据。
但服务器那边如果没进行数据返回时,fread阻塞在那里,中间过程中服务器那边打印显示会再次accept到一个连接(服务器当前只会有这一个设备对其连接)。
各位大神指导这个为什么吗,求解答呀,困惑好多天了?

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template