36
36
37
37
from neo4j .addressing import SocketAddress , Resolver
38
38
from neo4j .bolt .cert import KNOWN_HOSTS
39
- from neo4j .bolt .response import InitResponse , AckFailureResponse , ResetResponse
39
+ from neo4j .bolt .response import InitResponse , ResetResponse
40
40
from neo4j .compat .ssl import SSL_AVAILABLE , HAS_SNI , SSLError
41
41
from neo4j .exceptions import ClientError , ProtocolError , SecurityError , ServiceUnavailable
42
42
from neo4j .packstream import Packer , Unpacker
53
53
54
54
# Signature bytes for each message type
55
55
INIT = b"\x01 " # 0000 0001 // INIT <user_agent> <auth>
56
- ACK_FAILURE = b"\x0E " # 0000 1110 // ACK_FAILURE
57
56
RESET = b"\x0F " # 0000 1111 // RESET
58
57
RUN = b"\x10 " # 0001 0000 // RUN <statement> <parameters>
59
58
DISCARD_ALL = b"\x2F " # 0010 1111 // DISCARD *
@@ -240,8 +239,6 @@ def append(self, signature, fields=(), response=None):
240
239
log_debug ("C: DISCARD_ALL %r" , fields )
241
240
elif signature == RESET :
242
241
log_debug ("C: RESET %r" , fields )
243
- elif signature == ACK_FAILURE :
244
- log_debug ("C: ACK_FAILURE %r" , fields )
245
242
elif signature == INIT :
246
243
log_debug ("C: INIT (%r, {...})" , fields [0 ])
247
244
else :
@@ -251,13 +248,6 @@ def append(self, signature, fields=(), response=None):
251
248
self .output_buffer .chunk ()
252
249
self .responses .append (response )
253
250
254
- def acknowledge_failure (self ):
255
- """ Add an ACK_FAILURE message to the outgoing queue, send
256
- it and consume all remaining messages.
257
- """
258
- self .append (ACK_FAILURE , response = AckFailureResponse (self ))
259
- self .sync ()
260
-
261
251
def reset (self ):
262
252
""" Add a RESET message to the outgoing queue, send
263
253
it and consume all remaining messages.
0 commit comments