chore(deps): update upm project dependency com.unity.transport to v2 (develop) #3674
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.0
->2.5.3
❌ Editor bump required for testproject-tools-integration/Packages/manifest.json❌
It is very likely that you should NOT merge this.
Release Notes
com.unity.transport (com.unity.transport)
v2.5.3
Compare Source
Fixes
NetworkDriver.Connect
method that accepts hostnames.v2.5.2
Compare Source
Added
disconnectionTimeoutMs
parameter) will now disable the feature entirely. That is, with a value of 0 connections will not timeout anymore, no matter for how long nothing has been received from the remote peer. This is useful for debugging when a process is stopped by a debugger.Changes
NetworkDriver.Dispose
is not called has been removed. This editor-only mechanism would track open sockets and automatically close them in cases where they had not been closed manually. This was meant as a safety net for buggy code, but had a performance cost. Starting with this version, this mechanism is removed. It is now necessary to callNetworkDriver.Dispose
to close sockets. We recommend calling it in cleanup methods likeOnDestroy
. This change is not expected to impact most users, since failure to dispose of the driver would also cause a memory leak that would have generated its own set of warnings. If you don't see these warnings, then you are not impacted by this change.Fixes
reconnectionTimeoutMs
of 0 would be ignored if using DTLS.NetworkEndpoint.IsAny
andNetworkEndpoint.IsLoopback
would throw an exception for endpoints where the network family isNetworkFamily.Custom
. These properties will now return false for custom endpoints.v2.5.1
Compare Source
Changes
Fixes
v2.5.0
Compare Source
New Features
NetworkDriver.GetMaxSupportedMessageSize(connection)
. This value is established as part of the connection handshake and doesn't get recalculated over the lifetime of the connection. This value will also not exceed the NetworkConfig'sMaxMessageSize
value. This value is additionally available to pipelines viaNetworkPipelineContext.maxMessageSize
.Fixes
NetworkEndpoint.SetRawAddressBytes
would use the wrong number of bytes from the provided buffer.NetworkSendQueueFull
).IndexOutOfRangeException
when using WebSockets and the connection would fail to be established at the TCP level.v2.4.0
Compare Source
New features
Changes
ReliableSequencedPipelineStage
will now be sent a little more aggressively, which should improve throughput of reliable traffic.Fixes
v2.3.0
Compare Source
New features
NetworkSettings.WithNetworkSimulatorParameters
) now supports delay, jitter and packet duplication, but only in the send direction. Currently users are still recommended to use theSimulatorPipelineStage
for their network simulation needs until the global network simulator gains in maturity.Changes
Fixes
NetworkEndpoint.IsAny
andNetworkEndpoint.IsLoopback
would throw an exception for endpoints where the network family isNetworkFamily.Custom
. These properties will now return false for custom endpoints.v2.2.1
Compare Source
Fixes
NetworkEndpoint.TryParse
would leave the out parameter endpoint with a validNetworkFamily
, even if parsing of the address had failed.v2.1.0
Compare Source
New features
maxMessageSize
parameter inNetworkSettings.WithNetworkConfigParameters
. This is useful for environments where network equipment mishandles larger packets (like some mobile networks or VPNs). The value excludes IP and UDP headers, but includes headers added by the transport itself (e.g. reliability headers). The default value is 1400. Note that it is recommended that both client and server be configured to use the same value.AuthenticationFailure
andProtocolError
to theError.DisconnectReason
enum. These values are respectively returned when a connection fails to be established because of DTLS/TLS handshake failure, and for unexpected and unrecoverable errors encountered by the transport (e.g. unexpected socket errors or malformed WebSocket frames).NetworkFamily.Custom
value and proper support for it inNetworkEndpoint
. This value is intended for usage with customINetworkInterface
implementations, where endpoints are not IP addresses.Changes
NetworkDriver.GetRelayConnectionStatus
will now return the new enum valueRelayConnectionStatus.NotUsingRelay
when called on aNetworkDriver
that has not been configured to use Unity Relay. The previous behavior was to throw an exception. This can be used to safely determine if a driver is using Relay, even from Burst-compiled code.RelayServerData
now exposes aIsWebSocket
field that can be used to determine if the server data will be using a WebSocket endpoint. This value is set automatically if constructing theRelayServerData
from an allocation object, and can be set through a new optionalisWebSocket
parameter for low-level constructors.NetworkEndpoint.RawPort
is now obsolete. There is little use for this API since it basically only converts to/from network byte order. There are standard C# APIs to do this.Fixes
v2.0.2
Compare Source
Changes
NetworkDriver.GetRemoteEndpoint
will now always return the address of the Relay server, instead of returning the address until a connection is established, and then returning the allocation ID encoded as an endpoint (appearing as an invalid endpoint). This makes the behavior the same as it was in version 1.X of the package.RelayServerData
constructors on WebGL (other connection types are not supported on that platform).Fixes
NetworkDriverParallelForErr
) errors being reported when callingEndSend
.NetworkDriverParallelForErr
),EndSend
would leak the send handle. Over time, this would result in less send handles being available, resulting in more -5 (NetworkSendQueueFull
) errors.connectTimeoutMS
milliseconds to be reported as established, even if the connection was actually established faster than that.ArgumentOutOfRangeException
could be thrown in situations where a new WebSocket connection is established while a previous connection is in the process of being closed.GetRelayConnectionStatus
in scenarios where the Relay allocation times out while communications with the server are out.UDPNetworkInterface
(the default one) would not bind to the correct address if the local IP address change and the socket needs to be recreated (e.g. because the app was backgrounded on a mobile device).Disconnect
events would fail to be reported correctly for WebSocket connections.relayConnectionTimeMS
to 0 in the Relay parameters.v2.0.1
Compare Source
Changes
v1.5.0
Compare Source
Fixes
Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Unity Renovate Bot.