<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7957">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">config_transport: Enable TCP_NODELAY on TLS transports<br><br>We did this for TCP transports already but I'm not sure why we<br>didn't do it for TLS transports.<br><br>ASTERISK_27474 #not_final_fix<br><br>Change-Id: I5b1ef4b882f7b859e718236686b7898751dbb262<br>---<br>M res/res_pjsip/config_transport.c<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/57/7957/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c<br>index a9a90ac..63bf118 100644<br>--- a/res/res_pjsip/config_transport.c<br>+++ b/res/res_pjsip/config_transport.c<br>@@ -618,6 +618,8 @@<br> &temp_state->state->factory);<br> }<br> } else if (transport->type == AST_TRANSPORT_TLS) {<br>+ static int option = 1;<br>+<br> if (transport->async_operations > 1 && ast_compare_versions(pj_get_version(), "2.5.0") < 0) {<br> ast_log(LOG_ERROR, "Transport: %s: When protocol=tls and pjproject version < 2.5.0, async_operations can't be > 1\n",<br> ast_sorcery_object_get_id(obj));<br>@@ -627,6 +629,13 @@<br> temp_state->state->tls.password = pj_str((char*)transport->password);<br> set_qos(transport, &temp_state->state->tls.qos_params);<br> <br>+ /* sockopt_params.options is copied to each newly connected socket */<br>+ temp_state->state->tls.sockopt_params.options[0].level = pj_SOL_TCP();<br>+ temp_state->state->tls.sockopt_params.options[0].optname = pj_TCP_NODELAY();<br>+ temp_state->state->tls.sockopt_params.options[0].optval = &option;<br>+ temp_state->state->tls.sockopt_params.options[0].optlen = sizeof(option);<br>+ temp_state->state->tls.sockopt_params.cnt = 1;<br>+<br> for (i = 0; i < BIND_TRIES && res != PJ_SUCCESS; i++) {<br> if (perm_state && perm_state->state && perm_state->state->factory<br> && perm_state->state->factory->destroy) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7957">change 7957</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7957"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5b1ef4b882f7b859e718236686b7898751dbb262 </div>
<div style="display:none"> Gerrit-Change-Number: 7957 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>