walkor / walkor/webman

当eventLoop设置为Workerman\Events\Swoole::class时候,静态文件访问出现异常

Open
#440 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.7k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/84c5620b-0612-46ed-b5cb-eef193d7bbb6)

经测试当Webman开启协程的时候,且在Swoole驱动下,使用Webman原生的静态文件功能。

并且当文件较大时,浏览器访问这个文件,会出现这个异常。

小文件没有问题,我本地这张图片8M,出现了这个问题。

`server.php`中的`max_package_size`已经设置到了`1024 * 1024 * 1024`仍然未解决

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with Webman coroutines enabled, the Workerman\Events\Swoole event loop, and a large static file; review server.php and the native static-file handling involved in that path. Verify the behavior with an 8 MB or larger file and confirm that large-file browser requests complete without the reported exception while small files still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.