Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v2 0/3] console: do not use netbox for console text connections
@ 2018-03-28 13:35 Vladislav Shpilevoy
  2018-03-28 13:35 ` [tarantool-patches] [PATCH v2 1/3] netbox: allow to create a netbox connection from existing socket Vladislav Shpilevoy
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vladislav Shpilevoy @ 2018-03-28 13:35 UTC (permalink / raw)
  To: tarantool-patches; +Cc: Vladislav Shpilevoy

Branch: http://github.com/tarantool/tarantool/tree/gh-2677-prepare-console-for-push
Issue: https://github.com/tarantool/tarantool/issues/2677

Netbox console support complicates both netbox and console. Lets
use sockets directly for text protocol. But the problem is that
before a connection is established, the connection protocol is
unknown (binary or text). It can be determined only when a
greeting is read and decoded. After that the socket must be either
wrapped by netbox API for binary connections, or by text console
API for text connections. To be able to do that the new netbox
functions are introduced: establish_connection and wrap.

Netbox.establish_connection allows to connect to a server, read
and decode greeting.

Netbox.wrap creates a netbox state machine around a given socket.

Vladislav Shpilevoy (3):
  netbox: allow to create a netbox connection from existing socket
  console: do not use netbox for console text connections
  netbox: deprecate console support

 src/box/lua/console.lua   | 162 +++++++++++++++++++++++++++++-------
 src/box/lua/net_box.lua   | 204 ++++++++++++++++++++++++++++++++--------------
 test/box/net.box.result   |  91 ++++++++++++++++++++-
 test/box/net.box.test.lua |  41 +++++++++-
 4 files changed, 400 insertions(+), 98 deletions(-)

-- 
2.14.3 (Apple Git-98)

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

end of thread, other threads:[~2018-03-29 13:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 13:35 [tarantool-patches] [PATCH v2 0/3] console: do not use netbox for console text connections Vladislav Shpilevoy
2018-03-28 13:35 ` [tarantool-patches] [PATCH v2 1/3] netbox: allow to create a netbox connection from existing socket Vladislav Shpilevoy
2018-03-29 13:03   ` [tarantool-patches] " Konstantin Osipov
2018-03-28 13:35 ` [tarantool-patches] [PATCH v2 2/3] console: do not use netbox for console text connections Vladislav Shpilevoy
2018-03-29 13:03   ` [tarantool-patches] " Konstantin Osipov
2018-03-28 13:35 ` [tarantool-patches] [PATCH v2 3/3] netbox: deprecate console support Vladislav Shpilevoy

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