Code Monkey home page Code Monkey logo

Comments (8)

cocos56 avatar cocos56 commented on July 26, 2024

This does not happen on IIS
image

from hfs2.

rejetto avatar rejetto commented on July 26, 2024

if you are concerned about that "busy" message, it will appear after just 1 request from the same IP, because you are requesting folders (not files) and that's by design with 2.4.
HFS is not a high-performance server but if you are interested in benchmarks you can try requesting a file.
Cosnider that if you generate more log like i see in your screenshot you will also use more cpu.

from hfs2.

cocos56 avatar cocos56 commented on July 26, 2024

I use ab -n 20000 -c 64 http://1.coco56.top/robots.txt in Ununtu to request robots.txt file.

But HFS use a lot of ports, I think one port is enough. Too many ports also make it impossible to handle a large number of requests.
image

image

image

from hfs2.

cocos56 avatar cocos56 commented on July 26, 2024

The port changes every time I make a request.

from hfs2.

rejetto avatar rejetto commented on July 26, 2024

You misunderstood what that specific port is: it is the client's port.
This is how TCP works, and it is true for every TCP server, even if most programs won't show you, because you normally don't need to know.
The server port is only one, and HFS is not even able at the moment to have more than one.

from hfs2.

cocos56 avatar cocos56 commented on July 26, 2024

When HFS sends 409, what's the time of Retry-After ? And why the client sends a large number of requests consecutively in a very short period of time ?
image
image

from hfs2.

mrp8ge8 avatar mrp8ge8 commented on July 26, 2024

When HFS sends 409, what's the time of Retry-After ? And why the client sends a large number of requests consecutively in a very short period of time ?
image
image

静态文件,用Nginx更牛B。打算做文件床的话,用Nginx,Apache Http都行啊,非得来折腾这个

from hfs2.

rejetto avatar rejetto commented on July 26, 2024

The time communicated is random in the range 1-3 seconds.
The http header used is not retry-after but "refresh", but I guess retry-after could even be better, and we may have both just to be sure that more clients will understand. Thanks for pointing it out.
About the "why the client..." question, you should probably ask to whoever made the client, i have no idea.

from hfs2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.