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

buf_sock memory leak fixed, merged ccommon change introducing sockio metrics #128

Merged
merged 3 commits into from
Feb 13, 2017

Conversation

thinkingfish
Copy link
Contributor

This fixed bug #127

The leak was cause by 1) server keeps calling accept() until no more connection is pending on the listening socket (EWOULDBLOCK/EAGAIN); and 2) an buf_sock object is allocated before accept is attempted. In this case, the last call to accept always fails due to no more connection, and thus the last buf_sock object should be returned to avoid memory leak.

Yao Yue added 3 commits February 11, 2017 19:29
ab0edc8 add metrics to track buf_sock objects (twitter#138)
ae02038 add travis ci (copied from pelikan) (twitter#139)
964645a Merge pull request twitter#135 from paegun/fix_cmake_install
70710c2 fixed and re-added cmake install instructions, w/ following notes: include directory made proper relative; opened pattern match b/c include directory should only contain files meant for inclusion.
5b095bc Merge pull request twitter#126 from kevyang/kevyang/120
426d56a return NULL when cc_alloc/cc_realloc is called with size == 0
ad271d4 Merge pull request twitter#133 from kevyang/132
47dbdba suppress unused parameter warning in debug_log_flush
648d19e Merge pull request twitter#127 from kevyang/56
780941a Merge pull request twitter#130 from kevyang/129
b8af6c0 Merge pull request twitter#131 from kevyang/128
6ecc318 fix duplicate symbols in cc_signal
080c41d cc_array - stop doing arithmetic on void *
d526f7a add debug oriented memory management
a4fb927 Update bool member rules in style guide
05c6e1e explicitly make ccommon a C project to avoid checking for CXX related variables

git-subtree-dir: deps/ccommon
git-subtree-split: ab0edc8
@thinkingfish thinkingfish merged commit 399364b into twitter:master Feb 13, 2017
@thinkingfish thinkingfish deleted the buf_sock_metrics branch February 13, 2017 19:57
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.

2 participants