<p>Running master commit <a href="https://github.com/OpenSIPS/opensips/commit/968a4e004ebf85687f864b885a1ad5dc6632f41a" class="commit-link"><tt>968a4e0</tt></a></p>

<p>I have 2 UDP clients registered, 1 WSS client registered.  Over time ~2 hours opensips fails to accept WSS handshakes and the logs show that it has run out of memory.</p>

<pre><code>Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:handle_io: We have received conn 0x7f88de89b080 with rw 1 on fd 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:io_watch_add: [TCP_worker] io_watch_add op (31 on 6) (0x879880, 31, 19, 0x7f88de89b080,1), fd_no=2/2086
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:tls_update_fd: New fd is 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:ws_server_handshake: Using the global ( per process ) buff
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:proto_wss:tls_update_fd: New fd is 31
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: WARNING:core:fm_malloc: Not enough free memory (189384), will attempt defragmentation
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:core:fm_malloc: Defragmentation unsuccessful
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:proto_wss:ws_server_handshake: No more mem for dynamic con request buffer
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: ERROR:proto_wss:wss_read_req: cannot complete WebSocket handshake
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:io_watch_del: [TCP_worker] io_watch_del op on index 0 31 (0x879880, 31, 0, 0x10,0x3) fd_no=3 called
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:tcpconn_release:  releasing con 0x7f88de89b080, state -2, fd=-1, id=30
Jan  5 12:42:26 voipphreaker /usr/local/opensips/sbin/opensips[9887]: DBG:core:tcpconn_release:  extra_data 0x7f88de899458
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/743">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciegnFrXAdUhKSaICPKx4F0fkB0xaks5pW_k9gaJpZM4G_AQe.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/743"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>