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
|
#define MAYBE_ASIO_DEBUGGING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char const buffer[] = "";
|
static char const buffer[] = "";
|
||||||
// chasing the async_shutdown by a write is a trick to close the socket as
|
// 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
|
// soon as we've sent the close_notify, without having to wait to receive a
|
||||||
// response from the other end
|
// response from the other end
|
||||||
|
|
Loading…
Reference in New Issue