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

Dev #7

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
update
ideawu committed Jul 31, 2018
commit 62e7ee13f198f9fd972fe17939f8fa8db2010d5b
2 changes: 2 additions & 0 deletions src/net/test.cpp
Original file line number Diff line number Diff line change
@@ -52,11 +52,13 @@ int main(int argc, char **argv){
// log_debug("read");
LineMessage *msg = (LineMessage *)trans->recv(event.id());
if(!msg){
// do nothing, the close event will finally be triggered
log_debug("recv NULL msg, detect session closed");
}else{
log_debug("recv: %s", msg->text().c_str());
delete msg;
}
usleep(100 * 1000);
}
}