Commit graph

3 commits

Author SHA1 Message Date
fartwhif
f0717d4d23 fixing networking bugs (#1104)
* adding @netstats admin command

* trying to figure out the issue

* fixing bug causing AcknowledgeSequence packets to increment the lastReceivedFragmentSequence variable, causing the Sequence to break and never recover for that session
fixing bug causing RequestTransmit packets to be ignored
fixing bug causing the server to crash when a C2S packet is corrupt or malformed
changing the C2S RequestForTransmit packet count to be per request packet instead of per requested sequence
adding Developer commands junk, junk_s2c, junk_c2s, trash_s2c, and trash_c2s to simulate bad connections and manually corrupt packets

* updating changelog.md

* Update changelog.md

fixed incorrect variable name referred to in change log

* Update changelog.md

fix formatting

* adding preprocessor definition NETDIAG and directives to ACE.Common and ACE.Server to help development by preserving troubleshooting tools without interference with the optimal solution

* Apply suggestions from code review

set accessor only needed for NETDIAG functionality
minor change log addition

* reverting some unnecessary source syntax and formatting changes.
removing an unused exception variable

* reverting some unnecessary source syntax and formatting changes

* minor optimization of a duplicate prevention check
2018-11-30 23:58:00 -05:00
Mag-nus
32c70b7c1e
Centralize ACE Timers (#1030)
* Reimplementation of Timers class.

This centralizes all the timers in ACE to ACE.Server.Entity.Timers.

* Session Tick comment cleanup

* Sessions no longer maintain their own ServerTime

WorldManager.UpdateWorld was sending each ticks ElapsedTime to sessions. Sessions would add this to their own ServerTime value.

This is not needed. The only time Sessions reference this value is from within their TickInParallel functions, which are called from WorldManager.Update.

For now, we just point the existing variable that was being used (SessionConnectionData.ServerTime) to Timers.PortalYearTicks.

I suspect we thought this value might need thread safety at some point which is why we might have had each session maintain their own value.

* DerethDateTime UTCNowToLoreTime to UtcNowToLoreTime
2018-09-28 16:12:10 -05:00
Mag-nus
7e256a7fb3
ACE prj to ACE.Server rename (#628)
* ACE.DatLoader renames PositionNew to Position

* Remove comment

* ACE.DatLoader DatDatabase I prefer this type instead.

* Unused references removed

* namespace fixes

* ACE prj to ACE.Server rename

* Appveyor fix I think

* Changelog

* appveyor fixes

* Update AccountTests.cs

* Update ConstructedStatementTests.cs

* Update WeenieSearchTests.cs

* ACE.Tests -> ACE.Server.Tests

* Appvyeor
2018-02-08 17:05:02 -06:00
Renamed from Source/ACE/Network/SessionConnectionData.cs (Browse further)