Skip to content

Instantly share code, notes, and snippets.

View stefano-garzarella's full-sized avatar

Stefano Garzarella stefano-garzarella

View GitHub Profile
@stefano-garzarella
stefano-garzarella / vsock_connected_sock_issue.py
Created June 20, 2023 10:09
Script to debug a vsock issue. This happen when a connecting socket is bound to a port in the guest, the guest close the socket while the host still have it opened.
#!/usr/bin/python3
import argparse
import sys
import socket
def vsock_server(vsock, args):
vsock.listen()
while True: