Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: DDOS crash-test for WIN64 DATASNAP is collapse, but WIN32 is good



Permlink Replies: 0
matsenko vladimir

Posts: 1
Registered: 2/26/09
DDOS crash-test for WIN64 DATASNAP is collapse, but WIN32 is good
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 30, 2016 4:33 AM
DDOS attack on WIN64 DATASNAP (tcp/ip) server is finally crashed him,
but WIN32 version this server normally run all 200 connections

What is the BUG ???

//------------------------------------------------------------------------
in server side (10 connections is good, another cancelled by Exception in Authenticate):

__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{ Count_Sessions=0;}

void __fastcall TForm1::DSAuthenticationManager1UserAuthenticate(TObject *Sender,
const UnicodeString Protocol, const UnicodeString Context, const UnicodeString User,
const UnicodeString Password, bool &valid, TStrings *UserRoles)
{
if(Count_Sessions<10)
{ Count_Sessions++;
valid=true;
}
else
{
Count_Sessions++;
throw Exception("ERROR!!!");
}

//------------------------------------------------------------------------

in client side (SQLConnection1 is normally connected in design-time):

void __fastcall TMainForm::Button1Click(TObject *Sender)
{
if(!SQLConnection1->Connected)
{ SQLConnection1->Connected=true;
for(int i=0;i<200;i++)
{
TSQLConnection *SQLCon= new TSQLConnection(this);
SQLCon->LoginPrompt=SQLConnection1->LoginPrompt;
SQLCon->DriverName=SQLConnection1->DriverName;
SQLCon->Params->Assign(SQLConnection1->Params);
List->Add(SQLCon);
try
{
if(!SQLCon->Connected) SQLCon->Open();
Status->Text="Opened connect: "+IntToStr(i);
Application->ProcessMessages();
}
catch(...)
{;}
}
}

//------------------------------------------------------------------------
PS:
even Exception in EchoString collapse WIN64 DS Server, but normally run WIN32

System::UnicodeString TServerMethods1::EchoString(System::UnicodeString value)
{
throw Exception("ERROR!!!");
return value;
}

Edited by: matsenko vladimir on Nov 30, 2016 3:00 PM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02