This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Test to reproduce segmentation fault, caused by conn.ping() | |
""" | |
import threading | |
import time | |
import mariadb | |
HOST = '' | |
PORT = '' | |
USER = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mariadb | |
HOST = '' | |
PORT = '' | |
USER = '' | |
PASSWORD = '' | |
DATABASE = '' | |
""" | |
CREATE TABLE `t` ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dis | |
class CSPROTO_CLASS(object): | |
EMPTY = b"" | |
CLOSE = b"<F2B_CLOSE_COMMAND>" | |
END = b"<F2B_END_COMMAND>" | |
CLOSE_END = CLOSE + END | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import os | |
import subprocess | |
import sys | |
from threading import Event, Thread | |
# Only used to sleep between sends | |
#noinspection PyUnresolvedReferences |