Comments (1)
On second thought, this is not so straight-forward to change.
The reason why it is done in such a way at first place is that, You don't always succeed in inserting into the Cache. File might be too big to fit into the cache, but you need to load it from disk and serve it to client request anyway.
The HTTP::Response
class is probably too coupled in design that in Serialize
method it automatically decide if to load the file from disk. This class should be refactored so that the action of Appending file content to the end of the response buffer could be done separately.
Aim to fix this in March during Spring Break.
from turtle.
Related Issues (14)
- Wrong Event Macro
- Why not just use member variable in member function "SetCustomAcceptCallback"? HOT 2
- Enhancement: allow socket send to be "asynchronous" if data size too large
- Enhancement: strip off the std::map,use std::unordered_map instead HOT 1
- Enhancement: Add clang-tidy support in build
- Enhancement: reduce one layer of indirection in Looper's map HOT 1
- Improvement: revision suggestions from reddit post
- confusion about `sockaddr` in class `net_address` HOT 4
- Feature Request: Timer HOT 3
- 超时断开逻辑是不是有问题? HOT 1
- 建议加到xmake-repo 和vcpkg仓库 HOT 1
- 运行benchmark出现错误 HOT 4
- help for "sudo mysql < setup/setup.sql "
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turtle.