Comments (5)
一般情况下使用:
buf.append(data)
有时为了避免数据拷贝,会采用下面这种用法
char * p = buf.makeRoom(2048)
// copy n bytes data
buf.addSize(n)
只有在很关注性能时,才会使用addSize时,因此实现时,不应做过多的检查与操作,避免影响性能
from handy.
我在用httpserver,发现同一个TCP连接中,如果客户端发送多条数据,会造成 httpserver的buffer的越界。猜测可能是addSize造成的。void TcpConn::handleRead(const TcpConnPtr& con) 中的 addSize
from handy.
您好,目前这个httpserver只是具备的最简单的功能,对于您这边的发送多条数据这类高级一些的用法,我们还不支持
from handy.
@yedf2 你好, 请问基于handy库和RFC2616(http协议)实现一个完整的http服务器在技术上可行的吗?
from handy.
您好,现有的nginx能够满足绝大部分需求,因此我们没有打算基于handy再实现一个
from handy.
Related Issues (20)
- 学java,你应该需要一款入门服务器
- 关于测试环境 HOT 1
- Question about channel life cycle HOT 1
- 能否加入对Windows IOCP的支持?毕竟Windows下也有一定的需求 HOT 1
- handleHandshake这个的意义 HOT 1
- loop 问题 HOT 5
- 可以实现源IP随机吗? HOT 2
- 能否告知http,post请求的例子 HOT 1
- write会导致崩溃 HOT 1
- 运行报错
- 请问,onRequest 中uri中如何动态加入参数
- core dump created by handy::TcpConn::hanadleRead(std::shared_ptr<handy::TcpConn> const&)
- 在封闭环境没法git handy-ssl怎么办呢 HOT 1
- CI doesn't work
- Cmake doesn't build handy_test
- 重启服务端后,客户端显示重连成功,但是服务端并未显示有客户端连上来。 HOT 1
- 作者新开源一个分布式事务管理器github.com/yedf/dtm,欢迎指教 HOT 3
- Logger 的logv 多线程并发访问时可能会导致write失败 HOT 1
- MacOS 编译安装完会影响系统。编译SSL会卡住 HOT 10
- 谁正在用handy
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 handy.