Apply ogslib changes
This commit is contained in:
parent
fbc73230b0
commit
3d154cc423
|
@ -1 +1 @@
|
||||||
Subproject commit 720c9521aea86c341875cac9ca2de2cf3e621c45
|
Subproject commit 86d826beedc9b00d3f778160a90bc6ee77cffe9d
|
|
@ -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_ostreams = DEFAULT_SCTP_MAX_NUM_OF_OSTREAMS,
|
||||||
.sctp.max_num_of_istreams = 65535,
|
.sctp.max_num_of_istreams = 65535,
|
||||||
.sctp.max_attempts = 4,
|
.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);
|
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);
|
rv = subscribe_to_events(new);
|
||||||
ogs_assert(rv == OGS_OK);
|
ogs_assert(rv == OGS_OK);
|
||||||
|
|
||||||
rv = set_nodelay(new, true);
|
if (option.nodelay) {
|
||||||
ogs_assert(rv == OGS_OK);
|
rv = set_nodelay(new, option.nodelay);
|
||||||
|
ogs_assert(rv == OGS_OK);
|
||||||
|
}
|
||||||
|
|
||||||
rv = set_paddrparams(new, &option);
|
rv = set_paddrparams(new, &option);
|
||||||
ogs_assert(rv == OGS_OK);
|
ogs_assert(rv == OGS_OK);
|
||||||
|
|
Loading…
Reference in New Issue