Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/4] Outdate disconnected session
@ 2018-12-07 15:46 Vladislav Shpilevoy
  2018-12-07 15:46 ` [PATCH 1/4] iproto: rename disconnect cmsg to destroy Vladislav Shpilevoy
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Vladislav Shpilevoy @ 2018-12-07 15:46 UTC (permalink / raw)
  To: tarantool-patches; +Cc: vdavydov.dev

Once a connection is closed, a long-running user request can not
learn about this occasion. Even box.sesion.push() still works and
on_disconnect triggers are not run.

This patch makes things simpler:

* disconnected session is marked as dead. So a user can determine
  if a connection is closed by looking at session type == 'dead',
  or checking for errors from box.session.push();

* on_disconnect triggers are run right after disconnect. Even if
  there are some active requests.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-3859-outdate-session-on-disconnect
Issue: https://github.com/tarantool/tarantool/issues/3859

Vladislav Shpilevoy (4):
  iproto: rename disconnect cmsg to destroy
  iproto: fire on_disconnect right after disconnect
  session: introduce 'dead' type
  session: kill a session of a closed connection

 src/box/iproto.cc         | 78 +++++++++++++++++++++++++++------------
 src/box/session.cc        |  2 +
 src/box/session.h         | 14 +++++++
 test/box/net.box.result   | 21 ++++++++---
 test/box/net.box.test.lua | 13 +++++--
 test/box/push.result      | 50 +++++++++++++++++++++++++
 test/box/push.test.lua    | 22 +++++++++++
 7 files changed, 169 insertions(+), 31 deletions(-)

-- 
2.17.2 (Apple Git-113)

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-12-11 16:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07 15:46 [PATCH 0/4] Outdate disconnected session Vladislav Shpilevoy
2018-12-07 15:46 ` [PATCH 1/4] iproto: rename disconnect cmsg to destroy Vladislav Shpilevoy
2018-12-07 17:36   ` [tarantool-patches] " Konstantin Osipov
2018-12-11 12:54     ` [tarantool-patches] " Vladislav Shpilevoy
2018-12-07 15:46 ` [PATCH 2/4] iproto: fire on_disconnect right after disconnect Vladislav Shpilevoy
2018-12-07 17:37   ` [tarantool-patches] " Konstantin Osipov
2018-12-11 12:55     ` [tarantool-patches] " Vladislav Shpilevoy
2018-12-07 15:46 ` [PATCH 3/4] session: introduce 'dead' type Vladislav Shpilevoy
2018-12-07 17:38   ` [tarantool-patches] " Konstantin Osipov
2018-12-07 20:40     ` [tarantool-patches] " Vladislav Shpilevoy
2018-12-07 22:21       ` Konstantin Osipov
2018-12-07 22:42         ` Vladislav Shpilevoy
2018-12-07 15:46 ` [PATCH 4/4] session: kill a session of a closed connection Vladislav Shpilevoy
2018-12-07 17:35 ` [tarantool-patches] [PATCH 0/4] Outdate disconnected session Konstantin Osipov
2018-12-11 16:12   ` [tarantool-patches] " Vladislav Shpilevoy
2018-12-07 17:41 ` [tarantool-patches] " Konstantin Osipov
2018-12-11 16:13   ` [tarantool-patches] " Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox