Skip to content

Commit 999d596

Browse files
committed
Fix _nonBlockingConnectRightEndPoint
1 parent f0a5ec9 commit 999d596

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • src/libraries/System.Net.Sockets/src/System/Net/Sockets

src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public partial class Socket : IDisposable
4747

4848
// Keep track of the kind of endpoint used to do a non-blocking connect, so we can set
4949
// it to _rightEndPoint when we discover we're connected.
50-
private EndPoint? _nonBlockingConnect_rightEndPoint;
50+
private EndPoint? _nonBlockingConnectRightEndPoint;
5151

5252
// These are constants initialized by constructor.
5353
private AddressFamily _addressFamily;
@@ -317,7 +317,7 @@ public EndPoint? LocalEndPoint
317317
{
318318
// Update the state if we've become connected after a non-blocking connect.
319319
_isConnected = true;
320-
_rightEndPoint = _nonBlockingConnect_rightEndPoint;
320+
_rightEndPoint = _nonBlockingConnectRightEndPoint;
321321
_nonBlockingConnectInProgress = false;
322322
}
323323

@@ -363,7 +363,7 @@ public EndPoint? RemoteEndPoint
363363
{
364364
// Update the state if we've become connected after a non-blocking connect.
365365
_isConnected = true;
366-
_rightEndPoint = _nonBlockingConnect_rightEndPoint;
366+
_rightEndPoint = _nonBlockingConnectRightEndPoint;
367367
_nonBlockingConnectInProgress = false;
368368
}
369369

@@ -474,7 +474,7 @@ public bool Connected
474474
{
475475
// Update the state if we've become connected after a non-blocking connect.
476476
_isConnected = true;
477-
_rightEndPoint = _nonBlockingConnect_rightEndPoint;
477+
_rightEndPoint = _nonBlockingConnectRightEndPoint;
478478
_nonBlockingConnectInProgress = false;
479479
}
480480

@@ -890,7 +890,7 @@ public void Connect(EndPoint remoteEP)
890890

891891
if (!Blocking)
892892
{
893-
_nonBlockingConnect_rightEndPoint = remoteEP;
893+
_nonBlockingConnectRightEndPoint = remoteEP;
894894
_nonBlockingConnectInProgress = true;
895895
}
896896

@@ -3675,7 +3675,7 @@ private bool ConnectAsync(SocketAsyncEventArgs e, bool userSocket)
36753675

36763676
WildcardBindForConnectIfNecessary(endPointSnapshot.AddressFamily);
36773677

3678-
// Save the old _rightEndPoint and prep new _rightEndPoint.
3678+
// Save the old RightEndPoint and prep new RightEndPoint.
36793679
EndPoint? oldEndPoint = _rightEndPoint;
36803680
if (_rightEndPoint == null)
36813681
{

0 commit comments

Comments
 (0)