3636
3737from neo4j .addressing import SocketAddress , Resolver
3838from neo4j .bolt .cert import KNOWN_HOSTS
39- from neo4j .bolt .response import InitResponse , AckFailureResponse , ResetResponse
39+ from neo4j .bolt .response import InitResponse , ResetResponse
4040from neo4j .compat .ssl import SSL_AVAILABLE , HAS_SNI , SSLError
4141from neo4j .exceptions import ClientError , ProtocolError , SecurityError , ServiceUnavailable
4242from neo4j .packstream import Packer , Unpacker
5353
5454# Signature bytes for each message type
5555INIT = b"\x01 " # 0000 0001 // INIT <user_agent> <auth>
56- ACK_FAILURE = b"\x0E " # 0000 1110 // ACK_FAILURE
5756RESET = b"\x0F " # 0000 1111 // RESET
5857RUN = b"\x10 " # 0001 0000 // RUN <statement> <parameters>
5958DISCARD_ALL = b"\x2F " # 0010 1111 // DISCARD *
@@ -240,8 +239,6 @@ def append(self, signature, fields=(), response=None):
240239 log_debug ("C: DISCARD_ALL %r" , fields )
241240 elif signature == RESET :
242241 log_debug ("C: RESET %r" , fields )
243- elif signature == ACK_FAILURE :
244- log_debug ("C: ACK_FAILURE %r" , fields )
245242 elif signature == INIT :
246243 log_debug ("C: INIT (%r, {...})" , fields [0 ])
247244 else :
@@ -251,13 +248,6 @@ def append(self, signature, fields=(), response=None):
251248 self .output_buffer .chunk ()
252249 self .responses .append (response )
253250
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-
261251 def reset (self ):
262252 """ Add a RESET message to the outgoing queue, send
263253 it and consume all remaining messages.
0 commit comments