fix use-after-free issue in socket_type
This commit is contained in:
parent
178093f81b
commit
057c6684f2
|
@ -167,7 +167,7 @@ namespace aux {
|
|||
#define MAYBE_ASIO_DEBUGGING
|
||||
#endif
|
||||
|
||||
char const buffer[] = "";
|
||||
static char const buffer[] = "";
|
||||
// chasing the async_shutdown by a write is a trick to close the socket as
|
||||
// soon as we've sent the close_notify, without having to wait to receive a
|
||||
// response from the other end
|
||||
|
|
Loading…
Reference in New Issue