Commit 536bfcc
committed
deadlock fix.
shutdown both read and write of the socket to prevent
the reader blocks on read(2) but letting him able to
read pending packets.
foudn when `disconnect` where called and no more packets
are in the socket queue, the reader thread is kept in WAIT
state blocking `stop_reader` function on `pthread_join`.1 parent 5d58371 commit 536bfcc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments