javascript - express.static, pending files -
I am using express.static to serve several stable files:
App.use ("/ property", express.static (process.cwd (+ + "/ build / asset"));
It works correctly most of the time, although in some cases (especially when many files are downloaded once) file pending
one minute Or holds for two.
I am using:
Express: 4.9.5 node: v0.10.31 chrome: 36.0.1985.125m
< P> I have tried to debug it, the problem occurs when the session closes etc. The problem does not occur when there are only a few files.
Any idea how files are actually being finally admitted, this issue can not be done with the code. . Here are some places I would suggest that you look for the problem
- Do you have too many files in the '/ build / assets /' folder?
- Is there any other process to type disk?
- There are some big files that are taking a long time to serve and hence block requests for other files
Comments
Post a Comment