[TEST]HTTP::Server (Emulate DoS #1) fails

Bug #200757 reported by SqUe
2
Affects Status Importance Assigned to Milestone
OONet Library
Fix Released
Medium
SqUe

Bug Description

___HTTP::Server_(11_tests)__________+_Test_+_CPU__+_Exception_________________
   1| Ctor()... | ok | 0 |
   2| Start()... | ok | 0 |
   3| Start() double... | ok | 0 |ExceptionAlreadyConnected
   4| Start() recovery... | ok | 0 |
   5| Stop() quality test... | ok | 0 |
   6| Start() wrong... | ok | 0 |ExceptionNotConnected
   7| Start() wrong... | ok | 0 |ExceptionNotConnected
   8| Stop() cleanup... | ok | 0 |
   9| DC invalid clients... | ok | 0 |
  10| Pure Virtual Calls... | ok | 130 |
  11| Emulate DoS#1...
Exception: ExceptionSystemError!
/home/sque/svn/liboonet/liboonet/Socket.cpp (148)
Cannot Socket::Connect()

| FAIL | 10 |
    >> - (0)

SqUe (sque)
Changed in liboonet:
assignee: nobody → squarious
importance: Undecided → Medium
milestone: none → 0.1
status: New → Confirmed
Revision history for this message
SqUe (sque) wrote :

On windows the test results are:
___HTTP::Server_(11_tests)__________+_Test_+_CPU__+_Exception_________________
   1| Ctor()... | ok | 0 |
   2| Start()... | ok | 16 |
   3| Start() double... | ok | 15 |ExceptionAlreadyConnected
   4| Start() recovery... | ok | 0 |
   5| Stop() quality test... | ok | 0 |
   6| Start() wrong... | ok | 16 |ExceptionNotConnected
   7| Start() wrong... | ok | 0 |ExceptionNotConnected
   8| Stop() cleanup... | ok | 0 |
   9| DC invalid clients... | ok | 0 |
  10| Pure Virtual Calls... | ok | 4234 |
  11| Emulate DoS#1...
Exception: ExceptionConnectionRefused!
\Documents and Settings\sque\Desktop\SVN Work\liboonet\liboonet\Socket.cpp (142)

Cannot Socket::Connect()

| FAIL | 1032 |
    >> - (0)

Revision history for this message
SqUe (sque) wrote :

The reason for server stopping responding is inside InetServer
InetServer boom ExceptionAssertationFailed!
c:\documents and settings\sque\desktop\svn work\liboonet\liboonet\socketaddressinet.cpp (25)
An assertation failed!

SqUe (sque)
Changed in liboonet:
status: Confirmed → In Progress
Revision history for this message
SqUe (sque) wrote :

The reason was in socket's design. A function named close() just broke up all the design of Socket class. Along with MultiReference getting removed a half-rewritten implementation of Socket was commited solving all this kind of problems and closing this bug too.

Changed in liboonet:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.