mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11001] Fixed crashes in ACE network code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com> Thanks to kero99 for pointing to patch and testing.
This commit is contained in:
parent
d38539f12a
commit
f1283b489d
3 changed files with 4 additions and 1 deletions
|
|
@ -445,6 +445,7 @@ int WorldSocket::handle_close (ACE_HANDLE h, ACE_Reactor_Mask)
|
||||||
m_Session = NULL;
|
m_Session = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reactor()->remove_handler(this, ACE_Event_Handler::DONT_CALL | ACE_Event_Handler::ALL_EVENTS_MASK);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -261,5 +261,7 @@ void BufferedSocket::close_connection(void)
|
||||||
{
|
{
|
||||||
this->peer().close_reader();
|
this->peer().close_reader();
|
||||||
this->peer().close_writer();
|
this->peer().close_writer();
|
||||||
|
|
||||||
|
reactor()->remove_handler(this, ACE_Event_Handler::DONT_CALL | ACE_Event_Handler::ALL_EVENTS_MASK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11000"
|
#define REVISION_NR "11001"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue