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

[WIP] Fix mem #14

Merged
merged 2 commits into from
Oct 9, 2015
Merged

[WIP] Fix mem #14

merged 2 commits into from
Oct 9, 2015

Conversation

zheplusplus
Copy link
Contributor

#13 将缓冲区设为 std::shared_ptr 令客户端在释放时不会造成未写完的 Server::_output_buffer_set 中的引用失效.

另外限制客户端一次 pipe 的数量 (到 64, 对于普通应用来说, 与之前无异), 超过此 pipe 之后, 多出的部分会先缓存起来, 因为客户端需要等待一组请求全部完成时才会写回, 这一调整加快了大 pipeline 返回指令的速度.

@zheplusplus zheplusplus force-pushed the fix_mem branch 4 times, most recently from e3ffb44 to 2128500 Compare October 9, 2015 01:24
zheplusplus added a commit that referenced this pull request Oct 9, 2015
@zheplusplus zheplusplus merged commit 6e50e5a into projecteru:master Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant