drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
171 stars 119 forks source link

fix hanging connects in case of hostname resolve failure #90

Closed hhadzem closed 1 year ago

hhadzem commented 2 years ago

In case of failure to resolve hostname, pendingConnects buffer never empties as it containes nullptr wsi. Additionally, this stops FreeSWITCH from gracefully shutting down.

This fix removes nullptr connects from the buffer, solving the problem.