Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apr_socket_recv: Connection reset by peer (104) #70

Open
kocoten1992 opened this issue Dec 29, 2022 · 2 comments
Open

apr_socket_recv: Connection reset by peer (104) #70

kocoten1992 opened this issue Dec 29, 2022 · 2 comments

Comments

@kocoten1992
Copy link

Hello maintainer, I try http-server example in https://github.com/revoltphp/event-loop/blob/main/examples/http-server.php,

But when using ab tool to benchmark, it result in

This is ApacheBench, Version 2.3 <$Revision: 1901567 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
apr_socket_recv: Connection reset by peer (104)

AFAIK, this is not the problem with ab tool it self, but with the webserver, I'm using default ubuntu server to test it.

@kelunik
Copy link
Member

kelunik commented Dec 29, 2022

Hi @kocoten1992, what's the exact command you're running?

@kocoten1992
Copy link
Author

kocoten1992 commented Dec 30, 2022

Hi, the exact command is:

ab -t 5 -c 4 http://127.0.0.1:8080/

for php http-server, I run it as is https://github.com/revoltphp/event-loop/blob/main/examples/http-server.php.

P/s: I'm using latest php version (php 8.2.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants