VERSION 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. V1.17 [2022-01-09]
  2. - perf: server/client MaximizeSendReceiveBuffersToOSLimit option to set send/recv
  3. buffer sizes to OS limit. avoids drops due to small buffers under heavy load.
  4. V1.16 [2022-01-06]
  5. - fix: SendUnreliable respects ArraySegment.Offset
  6. - fix: potential bug with negative length (see PR #2)
  7. - breaking: removed pause handling because it's not necessary for Mirror anymore
  8. V1.15 [2021-12-11]
  9. - feature: feature: MaxRetransmits aka dead_link now configurable
  10. - dead_link disconnect message improved to show exact retransmit count
  11. V1.14 [2021-11-30]
  12. - fix: Send() now throws an exception for messages which require > 255 fragments
  13. - fix: ReliableMaxMessageSize is now limited to messages which require <= 255 fragments
  14. V1.13 [2021-11-28]
  15. - fix: perf: uncork max message size from 144 KB to as much as we want based on
  16. receive window size.
  17. fixes https://github.com/vis2k/kcp2k/issues/22
  18. fixes https://github.com/skywind3000/kcp/pull/291
  19. - feature: OnData now includes channel it was received on
  20. V1.12 [2021-07-16]
  21. - Tests: don't depend on Unity anymore
  22. - fix: #26 - Kcp now catches exception if host couldn't be resolved, and calls
  23. OnDisconnected to let the user now.
  24. - fix: KcpServer.DualMode is now configurable in the constructor instead of
  25. using #if UNITY_SWITCH. makes it run on all other non dual mode platforms too.
  26. - fix: where-allocation made optional via virtuals and inheriting
  27. KcpServer/Client/Connection NonAlloc classes. fixes a bug where some platforms
  28. might not support where-allocation.
  29. V1.11 rollback [2021-06-01]
  30. - perf: Segment MemoryStream initial capacity set to MTU to avoid early runtime
  31. resizing/allocations
  32. V1.10 [2021-05-28]
  33. - feature: configurable Timeout
  34. - allocations explained with comments (C# ReceiveFrom / IPEndPoint.GetHashCode)
  35. - fix: #17 KcpConnection.ReceiveNextReliable now assigns message default so it
  36. works in .net too
  37. - fix: Segment pool is not static anymore. Each kcp instance now has it's own
  38. Pool<Segment>. fixes #18 concurrency issues
  39. V1.9 [2021-03-02]
  40. - Tick() split into TickIncoming()/TickOutgoing() to use in Mirror's new update
  41. functions. allows to minimize latency.
  42. => original Tick() is still supported for convenience. simply processes both!
  43. V1.8 [2021-02-14]
  44. - fix: Unity IPv6 errors on Nintendo Switch
  45. - fix: KcpConnection now disconnects if data message was received without content.
  46. previously it would call OnData with an empty ArraySegment, causing all kinds of
  47. weird behaviour in Mirror/DOTSNET. Added tests too.
  48. - fix: KcpConnection.SendData: don't allow sending empty messages anymore. disconnect
  49. and log a warning to make it completely obvious.
  50. V1.7 [2021-01-13]
  51. - fix: unreliable messages reset timeout now too
  52. - perf: KcpConnection OnCheckEnabled callback changed to a simple 'paused' boolean.
  53. This is faster than invoking a Func<bool> every time and allows us to fix #8 more
  54. easily later by calling .Pause/.Unpause from OnEnable/OnDisable in MirrorTransport.
  55. - fix #8: Unpause now resets timeout to fix a bug where Mirror would pause kcp,
  56. change the scene which took >10s, then unpause and kcp would detect the lack of
  57. any messages for >10s as timeout. Added test to make sure it never happens again.
  58. - MirrorTransport: statistics logging for headless servers
  59. - Mirror Transport: Send/Receive window size increased once more from 2048 to 4096.
  60. V1.6 [2021-01-10]
  61. - Unreliable channel added!
  62. - perf: KcpHeader byte added to every kcp message to indicate
  63. Handshake/Data/Ping/Disconnect instead of scanning each message for Hello/Byte/Ping
  64. content via SegmentEquals. It's a lot cleaner, should be faster and should avoid
  65. edge cases where a message content would equal Hello/Ping/Bye sequence accidentally.
  66. - Kcp.Input: offset moved to parameters for cases where it's needed
  67. - Kcp.SetMtu from original Kcp.c
  68. V1.5 [2021-01-07]
  69. - KcpConnection.MaxSend/ReceiveRate calculation based on the article
  70. - MirrorTransport: large send/recv window size defaults to avoid high latencies caused
  71. by packets not being processed fast enough
  72. - MirrorTransport: show MaxSend/ReceiveRate in debug gui
  73. - MirrorTransport: don't Log.Info to console in headless mode if debug log is disabled
  74. V1.4 [2020-11-27]
  75. - fix: OnCheckEnabled added. KcpConnection message processing while loop can now
  76. be interrupted immediately. fixes Mirror Transport scene changes which need to stop
  77. processing any messages immediately after a scene message)
  78. - perf: Mirror KcpTransport: FastResend enabled by default. turbo mode according to:
  79. https://github.com/skywind3000/kcp/blob/master/README.en.md#protocol-configuration
  80. - perf: Mirror KcpTransport: CongestionControl disabled by default (turbo mode)
  81. V1.3 [2020-11-17]
  82. - Log.Info/Warning/Error so logging doesn't depend on UnityEngine anymore
  83. - fix: Server.Tick catches SocketException which happens if Android client is killed
  84. - MirrorTransport: debugLog option added that can be checked in Unity Inspector
  85. - Utils.Clamp so Kcp.cs doesn't depend on UnityEngine
  86. - Utils.SegmentsEqual: use Linq SequenceEqual so it doesn't depend on UnityEngine
  87. => kcp2k can now be used in any C# project even without Unity
  88. V1.2 [2020-11-10]
  89. - more tests added
  90. - fix: raw receive buffers are now all of MTU size
  91. - fix: raw receive detects error where buffer was too small for msgLength and
  92. result in excess data being dropped silently
  93. - KcpConnection.MaxMessageSize added for use in high level
  94. - KcpConnection.MaxMessageSize increased from 1200 bytes to to maximum allowed
  95. message size of 145KB for kcp (based on mtu, overhead, wnd_rcv)
  96. V1.1 [2020-10-30]
  97. - high level cleanup, fixes, improvements
  98. V1.0 [2020-10-22]
  99. - Kcp.cs now mirrors original Kcp.c behaviour
  100. (this fixes dozens of bugs)
  101. V0.1
  102. - initial kcp-csharp based version