MDEV-23348 vio_shutdown does not prevent later ReadFile on named pipe

Introduce st_vio::shutdown_flag to be checked prior to Read/WriteFile
and during wait for async.io to finish.
This commit is contained in:
Vladislav Vaintroub 2020-08-03 13:23:38 +02:00
commit ccb9f673b4
3 changed files with 15 additions and 4 deletions

View file

@ -281,6 +281,7 @@ struct st_vio
OVERLAPPED overlapped;
DWORD read_timeout_ms;
DWORD write_timeout_ms;
int shutdown_flag;
#endif
};
#endif /* vio_violite_h_ */