Skip to content

Commit

Permalink
Merge pull request markparticle#18 from markparticle/dev_mark
Browse files Browse the repository at this point in the history
Dev mark
  • Loading branch information
markparticle authored Jun 29, 2020
2 parents 22dacaf + c2651b0 commit 629fe4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/buffer/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ssize_t Buffer::ReadFd(int fd, int* saveErrno) {
iov[1].iov_base = buff;
iov[1].iov_len = sizeof(buff);

const int len = readv(fd, iov, 2);
const ssize_t len = readv(fd, iov, 2);
if(len < 0) {
*saveErrno = errno;
}
Expand Down
2 changes: 1 addition & 1 deletion code/server/webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void WebServer::InitEventMode_(int trigMode) {
}

void WebServer::Start() {
int timeMS = -1;
int timeMS = -1; /* epoll wait timeout == -1 无事件将阻塞 */
if(!isClose_) { LOG_INFO("========== Server start =========="); }
while(!isClose_) {
if(timeoutMS_ > 0) {
Expand Down

0 comments on commit 629fe4c

Please sign in to comment.