diff options
| author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-07-14 19:58:48 +0300 |
|---|---|---|
| committer | Alex Trotsenko <alex1973tr@gmail.com> | 2021-07-24 11:52:30 +0300 |
| commit | d9c0af92bd893e1f6a0b4c627300ea96a73aba55 (patch) | |
| tree | 0bc36f07c99dbdc3dcd81eb83b31742b91fcd368 /src/concurrent/doc/snippets/code | |
| parent | a7da8e0dab8f6290b2af9bc12c0cd391af30bfb7 (diff) | |
QLocalSocket/Unix: fix aborting the socket
According to the documentation, calling abort() should immediately
reset the socket to its initial state. This includes:
- closing the file descriptor;
- closing the QLocalSocket as an I/O device;
- canceling a pending outgoing connection, if it exist;
- reseting 'serverName' string.
So, adding a call to close() resets the state entirely.
Pick-to: 6.1 6.2
Change-Id: I9c604b5187c6300b437d7aa4c2d06db03edacf21
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/concurrent/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
