Apply ogslib changes

This commit is contained in:
Sukchan Lee 2019-06-15 15:21:34 +09:00
parent fbc73230b0
commit 3d154cc423
2 changed files with 7 additions and 4 deletions

@ -1 +1 @@
Subproject commit 720c9521aea86c341875cac9ca2de2cf3e621c45
Subproject commit 86d826beedc9b00d3f778160a90bc6ee77cffe9d

View File

@ -49,7 +49,8 @@ ogs_sock_t *ogs_sctp_socket(int family, int type, ogs_socknode_t *node)
.sctp.max_num_of_ostreams = DEFAULT_SCTP_MAX_NUM_OF_OSTREAMS,
.sctp.max_num_of_istreams = 65535,
.sctp.max_attempts = 4,
.sctp.max_initial_timeout = 8000 /* 8 seconds */
.sctp.max_initial_timeout = 8000, /* 8 seconds */
.nodelay = true /* Turn-on NODELAY */
};
ogs_sctp_set_option(&option, node);
@ -60,8 +61,10 @@ ogs_sock_t *ogs_sctp_socket(int family, int type, ogs_socknode_t *node)
rv = subscribe_to_events(new);
ogs_assert(rv == OGS_OK);
rv = set_nodelay(new, true);
ogs_assert(rv == OGS_OK);
if (option.nodelay) {
rv = set_nodelay(new, option.nodelay);
ogs_assert(rv == OGS_OK);
}
rv = set_paddrparams(new, &option);
ogs_assert(rv == OGS_OK);