mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user