MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / disconnect

Function disconnect

web/pgadmin/tools/psql/__init__.py:552–560  ·  view source on GitHub ↗

Disconnect the socket and terminate the process

()

Source from the content-addressed store, hash-verified

550
551@sio.on('disconnect', namespace='/pty')
552def disconnect():
553 """
554 Disconnect the socket and terminate the process
555 """
556 # request.sid: refer request.sid as socket id.
557 if request.sid in pdata:
558 # On disconnect socket manually exit the psql terminal and close the
559 # parend and child fd then kill the subprocess.
560 disconnect_socket()
561
562
563@sio.on('server-disconnect', namespace='/pty')

Callers 1

wrappedFunction · 0.50

Calls 1

disconnect_socketFunction · 0.85

Tested by

no test coverage detected