<HTML><BODY><div><div><div>As a result of private discussion, here are the steps to be<br>implemented:</div><div>1. Greeting should be done by iproto solely. This means session<br>creation has to be moved to a later point (after iproto_msg_decode).<br>Thus iproto has to be able to reach iproto_msg_decode without tx<br>assistance. Iproto also should be able to finish connection itself in<br>case it is possible (connection being rejected by iproto).<br>2. Introduce state machine managed from tx. tx should be able to enable<br>different iproto states depending on tx work phase, for example, to<br>reject all connections on secondary index build.<br>3. To be more specific, we need to be able to classify different types<br>of connections, for example, replica connection vs client connection.<br>This means we need to add specific flag for replica authentication and<br>prioritize it if needed depending on the iproto state.<br>4. New approach to connections handling means we need to reconsider<br>clients behavior: specific error for this rejection type, reconnection<br>on timeout.</div></div><div> </div><div>--<br>Ilya Kosarev</div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Вторник, 30 июня 2020, 14:47 +03:00 от Konstantin Osipov <kostja.osipov@gmail.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15935176360106093221_BODY">* Ilya Kosarev <<a href="/compose?To=i.kosarev@tarantool.org">i.kosarev@tarantool.org</a>> [20/06/30 14:19]:<div class="mail-quote-collapse">><br>> Ссылки были заинлайнены под слова.<br>> Не учёл, что это работает не во всех клиентах.<br>> <a href="https://github.com/tarantool/tarantool/issues/3776" target="_blank">https://github.com/tarantool/tarantool/issues/3776</a><br>> <a href="https://github.com/tarantool/tarantool/issues/4646" target="_blank">https://github.com/tarantool/tarantool/issues/4646</a><br>> <a href="https://github.com/tarantool/tarantool/issues/4910" target="_blank">https://github.com/tarantool/tarantool/issues/4910</a><br>>  <br>> Про vtab/состояния конечно вопрос отдельный, я написал, как это вижу.<br>>  <br>> В iproto_msg_decode как раз есть возможность отделить одно от другого.</div><br>Как именно?<br><br><br>--<br>Konstantin Osipov, Moscow, Russia</div></div></div></div></blockquote><div> </div></div></BODY></HTML>