<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">In the ticket I have proposed this: <a href="https://github.com/tarantool/tarantool/issues/2998#issuecomment-364901700" class="">https://github.com/tarantool/tarantool/issues/2998#issuecomment-364901700</a><div class="">@kostja wrote this: <a href="https://github.com/tarantool/tarantool/issues/2998#issuecomment-364915567" class="">https://github.com/tarantool/tarantool/issues/2998#issuecomment-364915567</a></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">12 февр. 2018 г., в 17:03, Vladimir Davydov <<a href="mailto:vdavydov.dev@gmail.com" class="">vdavydov.dev@gmail.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><div class="">On Mon, Feb 12, 2018 at 04:45:34PM +0300, Vladislav Shpilevoy wrote:<br class=""><blockquote type="cite" class="">diff --git a/test/box/net.box.test.lua b/test/box/net.box.test.lua<br class="">index 378dfd4ab..4d190c22d 100644<br class="">--- a/test/box/net.box.test.lua<br class="">+++ b/test/box/net.box.test.lua<br class="">@@ -850,7 +850,8 @@ x = 0<br class=""> for i = 1, N do x = x + long_call_channel:get() end<br class=""> x<br class=""><br class="">--- Check that a connection does not leak if there is<br class="">+--<br class="">+-- gh-2998: check that a connection does not leak if there is<br class=""></blockquote><br class="">I don't think this is worthwhile.<br class=""><br class="">BTW I think original Kostja's concern was about the delay between<br class="">closing the connection and invoking the trigger. Currently, we wait<br class="">until all pending requests have been completed before we invoke the<br class="">on_disconnect trigger. Kostja has suggested to push on_disconnect<br class="">message immediately. Not sure if it's feasible though.<br class=""><br class=""><blockquote type="cite" class=""> -- a long CALL in progress when it is closed.<br class=""> disconnected = false<br class=""> function on_disconnect() disconnected = true end<br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>