We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e3ebf commit c7892feCopy full SHA for c7892fe
tarantool/request.py
@@ -134,6 +134,16 @@ def sha1(values):
134
request_body = msgpack.dumps({IPROTO_USER_NAME: user,
135
IPROTO_TUPLE: ("chap-sha1", scramble)})
136
self._body = request_body
137
+
138
+ def header(self, length):
139
+ self._sync = self.conn.generate_sync()
140
+ # Set IPROTO_SCHEMA_ID: 0 to avoid SchemaReloadException
141
+ # It is ok to use 0 in auth every time
142
+ header = msgpack.dumps({IPROTO_CODE: self.request_type,
143
+ IPROTO_SYNC: self._sync,
144
+ IPROTO_SCHEMA_ID: 0})
145
146
+ return msgpack.dumps(length + len(header)) + header
147
148
def header(self, length):
149
self._sync = self.conn.generate_sync()
0 commit comments