Created attachment 116349 [details] [review]
socket: add nice_socket_get_base()
The argument passed into the callback is always a base (TCP/UDP) socket,
which can't be directly compared with local candidate's sockptr (may be
TURN, http, or other socket wrapping another one). Thus, we have to
first extract candidate's base socket.
Two patches are attached. The first adds nice_socket_get_base() to socket API, allowing to retrieve a pointer to base of a NiceSocket. The second uses this new function in _tcp_sock_is_writable() to fix the described problem.
Created attachment 116350 [details] [review]
agent: compare base sockets in _tcp_sock_is_writable()
Migrated to Phabricator: http://phabricator.freedesktop.org/T114