mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 11:36:47 +08:00
IOV_MAX minimum value 16.
This commit is contained in:
@@ -476,11 +476,7 @@ void Communicator::shutdown_service(CommService *service)
|
||||
}
|
||||
|
||||
#ifndef IOV_MAX
|
||||
# ifdef UIO_MAXIOV
|
||||
# define IOV_MAX UIO_MAXIOV
|
||||
# else
|
||||
# define IOV_MAX 1024
|
||||
# endif
|
||||
# define IOV_MAX 16
|
||||
#endif
|
||||
|
||||
int Communicator::send_message_sync(struct iovec vectors[], int cnt,
|
||||
|
||||
+1
-5
@@ -506,11 +506,7 @@ static void __poller_handle_read(struct __poller_node *node,
|
||||
}
|
||||
|
||||
#ifndef IOV_MAX
|
||||
# ifdef UIO_MAXIOV
|
||||
# define IOV_MAX UIO_MAXIOV
|
||||
# else
|
||||
# define IOV_MAX 1024
|
||||
# endif
|
||||
# define IOV_MAX 16
|
||||
#endif
|
||||
|
||||
static void __poller_handle_write(struct __poller_node *node,
|
||||
|
||||
Reference in New Issue
Block a user