leak
e502e01f5d
Fixed a rare crash case when authserver socket was forcefully closed during read
...
Closes #12634
2014-07-27 18:36:03 +02:00
Shauren
6f272ea5b7
Core/Network: Optimized packet sending by removing unneccessary memory copying
2014-07-27 17:46:46 +02:00
Shauren
e77c0b6ed4
Core/Network: Allow storing any packet types in Socket write queue to reduce the amount of copying going on
2014-07-27 14:59:46 +02:00
Shauren
26715795b4
Fixed gcc build
2014-07-27 01:26:03 +02:00
Shauren
c1b1ba44ba
Core/Network: Refactored socket code, moved common operations to base Socket class
2014-07-26 23:26:01 +02:00
Shauren
e1c400250c
Added comments to 6961f957c9 to make sure noone decides that storing the result in a variable is unneccessary
2014-07-26 16:14:18 +02:00
Shauren
6961f957c9
Core/DBLayer: Fixed possible crashes with async queries retrieving result
...
Closes #12655
2014-07-26 16:10:05 +02:00
Subv
a03c879565
Core/PreparedStatements: Fixed a change I missed in the World prepared statements for waypoints.
2014-07-25 20:18:43 -05:00
Subv
b5d025938e
Core/Waypoints: Allow the table waypoint_data to use Takeoff and Land waypoints.
2014-07-25 19:05:25 -05:00
DDuarte
0b75e38755
Core/Shared: Change rand32 to return uin32 instead of int32
...
Fixes a crash that happened when rand32 returned negative values.
Also updated some related comments that were outdated since we changed to SFMT.
Closes #12638
2014-07-25 15:00:40 +01:00
Shauren
b5f0b85b48
Core/Misc: Fixed a possible crash in ProducerConsumerQueue::Cancel
2014-07-24 18:05:54 +02:00
DDuarte
737c3aa9f6
Core/Common: Remove the no longer finite(x) macro for MSVC
...
Use std::isinfinite(f) instead.
2014-07-24 01:01:03 +01:00
Jared P. Jones
11ecd851a1
Core/Misc: Silenced 500 OS X Warnings and removed deprecated finite() method.
...
*Mac OS X fires off over 200 warnings related to gsoap about the deprecated register method. CMake has been patched to remove this warning.
*Updated all occurences of finite() to std::isfinite. The method finite() is not standardized by anyone aside from BSD. std::isfinite() however is standarized by C++
*Removed -ncurses and -pthread from OS X compilation. Now that we use Boost and C++11 there is no longer a need for pthread in OS X. All it does is throw a warning. However, ncurses isn't needed either as it's built into the OS X SDK and linked by default.
Note: There are only 5 remaining warnings left when compiling on OS X. I did not attempt to fix these as they were related to 3rd party libraries statically linked into the code. The 5 warnings left are all related to unused variables.
2014-07-23 17:30:45 -05:00
DDuarte
44c0d66d63
Core/Misc: Remove a define that is no longer needed since ACE was removed
2014-07-22 13:12:39 +01:00
leak
5b0898b33c
Core/DatabaseWorkerPool: Delete PCQ in dtor rather than in Close() and cancel queue properly before doing so
2014-07-21 20:12:44 +02:00
Sebastian Valle Herrera
eae97c7bc8
Core/PreparedStatements: Fixed a Coverity warning
2014-07-21 13:01:11 -05:00
Vincent-Michael
946ab3e8b7
Core: Kill again whitespace :(
2014-07-21 18:14:22 +02:00
Shauren
c0eba6a127
Fixed gcc build without pch
2014-07-20 16:06:35 +02:00
Vincent-Michael
0531f52008
Core: Fix non pch build (gcc)
2014-07-20 02:54:12 +02:00
leak
dce92611f3
Refactored singletons to enable proper deconstruction during shutdown
2014-07-20 00:40:08 +02:00
Shauren
7532864264
Buildsystem/MSVC: Warning fixes
...
C4800 'type' : forcing value to bool 'true' or 'false' (performance warning)
C4127 conditional expression is constant
2014-07-17 15:42:57 +02:00
Chaplain
68398a559e
[Auth\Worldserver] Use boost to load console arguments. (Added a few style changes and cmake fix)
...
Conflicts:
src/server/worldserver/Main.cpp
2014-07-15 18:15:55 +02:00
leak
ecde28d1c1
Replacing ACE based multi threading with PCQ
2014-07-14 22:51:13 +02:00
leak
a70fb4c306
Corrected order of inclusion in Define.h
2014-07-14 20:54:55 +02:00
Subv
f14399d788
More warnings fixes
2014-07-13 16:49:56 -05:00
Subv
f6962f9c68
Fixed some compiler warnings
2014-07-13 16:40:31 -05:00
Subv
87f830ca89
Fix a warning about abstract class not having a virtual destructor
2014-07-13 15:17:13 -05:00
Shauren
264363e76c
Core/Misc: Fixed another compiler segmentation fault when compiling AsyncAcceptor with gcc 4.7.2
2014-07-11 22:24:22 +02:00
Shauren
eaee0f5dd0
Core/Misc: Fixed compiler segmentation fault when compiling AsyncAcceptor with gcc 4.7.2
2014-07-11 22:07:48 +02:00
Subv
da28c24d8e
More GCC compile fixes
2014-07-09 12:24:20 -05:00
Subv
6eaffdac51
Nuked some compiler errors on Linux
2014-07-09 11:32:49 -05:00
Subv
d15ced546f
Fixed the UI64FMT and SI64FMT format specifiers
2014-07-08 17:33:34 -05:00
leak
d1594998f8
Replaced the LogWorker thread with Boost ASIO
2014-07-08 20:55:25 +02:00
leak
c24bf2f028
Fix of the fix ftw
2014-07-07 23:36:31 +02:00
leak
1a9c183bc6
Fixed the AsyncAcceptor overload (too much c#..)
2014-07-07 22:09:17 +02:00
leak
c7d5660e99
Readd support for TCP_NODELAY socket option
2014-07-07 21:37:55 +02:00
leak
021e18d152
Refactored both world and auth main
...
- Master/Worldrunable removed
- World Update loop now running on main (which was doing nothing before)
- Processpriority moved to shared
- Added a preliminary thread pool for boost::asio::io_service
2014-07-04 15:22:06 +02:00
leak
4f2f9e08f8
Fixed compilation and some copy paste error
2014-07-04 15:20:23 +02:00
Subv
0a07fd5fc3
Some changes here and there in shared
2014-07-03 15:08:35 -05:00
Subv
87b72f41ca
Fixed login and some errors
2014-07-02 21:56:40 -05:00
leak
310f5e6846
Some ground work for ASIO based RemoteAccess handling
2014-07-02 17:38:44 +02:00
Subv
b2657a809d
Fixed the authserver compile
2014-07-01 20:40:56 -05:00
leak
66c94ce965
Delinking ACE from Shared and authserver
2014-07-02 00:43:47 +02:00
leak
25e633aa34
Replaced ACE_Method_Request based DelayExecutor by PCQ impl
...
Untested due to worldserver still breaking because of ACE threading fails
2014-07-02 00:41:30 +02:00
leak
f8e829da65
Removed useless SignalHandler class
2014-07-01 00:57:29 +02:00
leak
029bad6698
Replaced all remaining ACE based Singletons
...
Replaced ACE base AutoPtr class with shared_ptr
Note: worldserver currently broken due to MapUpdater threading failure (ACE ofc, what else could it be)
2014-07-01 00:54:09 +02:00
leak
d39a013b6b
Replaced ACE_Task_Base based DatabaseWorker with PCQ
...
Note: Not exactly sure how shutdown should be handled, currently the queue clears itself out before shutting down
This might need to be changed if the queue should be fully processed before being deleted
2014-06-30 18:37:23 +02:00
leak
9588c1d92b
Replace ACE thread/mutex in OpenSSLCrypto
2014-06-30 16:28:55 +02:00
leak
eb36acd152
Replaced ACE_Task_Base based LogWorker with ProducerConsumerQueue
2014-06-30 14:44:52 +02:00
leak
d8d0b4730e
Revert "Removed ACE dependencies from LogWorker" This actually needs way more work
...
This reverts commit 0a592dd9db .
2014-06-24 21:10:07 +02:00