diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-12-26 16:23:11 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-12-26 16:56:33 -0800 |
| commit | a31df988bb59e438e0eca9f7fb057a2c8ff7b54b (patch) | |
| tree | e5f7ba187069125e227235473da6290d234aeb43 /src/platform/posix/posix_tcp.h | |
| parent | d590eceab74772a8d5fa50c94074b09927577ee4 (diff) | |
| download | nng-a31df988bb59e438e0eca9f7fb057a2c8ff7b54b.tar.gz nng-a31df988bb59e438e0eca9f7fb057a2c8ff7b54b.tar.bz2 nng-a31df988bb59e438e0eca9f7fb057a2c8ff7b54b.zip | |
fixes #1037 http client crashes (pthread lock bugs)
This reference counts both TCP and IPC dialers running on POSIX
configurations, as we need to take care not to destroy the dialer
until any streams associated with are completely destroyed.
Diffstat (limited to 'src/platform/posix/posix_tcp.h')
| -rw-r--r-- | src/platform/posix/posix_tcp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/posix/posix_tcp.h b/src/platform/posix/posix_tcp.h index 9c7d0684..e1a70bc3 100644 --- a/src/platform/posix/posix_tcp.h +++ b/src/platform/posix/posix_tcp.h @@ -29,5 +29,6 @@ struct nni_tcp_conn { }; extern int nni_posix_tcp_init(nni_tcp_conn **, nni_posix_pfd *); extern void nni_posix_tcp_start(nni_tcp_conn *, int, int); +extern void nni_posix_tcp_dialer_rele(nni_tcp_dialer *); #endif // PLATFORM_POSIX_TCP_H
\ No newline at end of file |
