Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Preventing caching IP endpoint
for supporting database failover
  • Loading branch information
LincolnYang1 authored Oct 20, 2021
commit 5dd0b87f0c12efb1d9c41422befdfc6b272ab6d8
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ private Socket CreateSocket(CancellationToken token)
{
try
{
if (_endpoint == null)
{
_endpoint = CreateEndpoint(_parameters.Server, _parameters.Port, token);
}
_endpoint = CreateEndpoint(_parameters.Server, _parameters.Port, token);

return new Socket(_endpoint.AddressFamily, SocketType.Stream, ProtocolType.IP);
}
Expand Down