INNER CODE UNIT · Python

get_write_buffer_bytes

BlessedRebuS/Krawl · src/database/core.py:124

def get_write_buffer_bytes() -> int:
    """Approximate bytes held by the write buffer (for monitoring)."""
    return _buffer_bytes


def get_dropped_rows() -> int:
    """Access-log rows dropped because the buffer was full (for monitoring)."""
    return _dropped_rows


class DatabaseManager:
    """
    Singleton database manager for the Krawl honeypot.

    Handles database initialization, session management, and provides
    methods for persisting access logs, credentials, and attack detections.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…