Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2024-03-08 00:25:14 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ protected:
virtual void handle(int state, int error);
virtual CommMessageOut *message_out();
private:
protected:
bool req_is_alive_;
bool req_has_keep_alive_header_;
std::string req_keep_alive_;

View File

@@ -1771,7 +1771,11 @@ int Communicator::reply_message_unreliable(struct CommConnEntry *entry)
.msg_name = entry->target->addr,
.msg_namelen = entry->target->addrlen,
.msg_iov = vectors,
#ifdef __linux__
.msg_iovlen = (size_t)cnt,
#else
.msg_iovlen = cnt,
#endif
};
if (sendmsg(entry->sockfd, &message, 0) < 0)
return -1;