Skip to content

Commit a1f020b

Browse files
author
Cristian Pop
committed
Fixing DNS iteration when multiple IPs are returned for the same host.
1 parent e088771 commit a1f020b

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

iothub/device/src/Microsoft.Azure.Devices.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</PropertyGroup>
2323

2424
<PropertyGroup>
25-
<Version>1.17.0</Version>
25+
<Version>1.17.1</Version>
2626
<Title>Microsoft Azure IoT Device Client SDK</Title>
2727
<Authors>Microsoft</Authors>
2828
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

iothub/device/src/Transport/Mqtt/MqttTransportHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ Func<IPAddress[], int, Task<IChannel>> CreateChannelFactory(IotHubConnectionStri
945945
{
946946
Debug.WriteLine("Connecting to {0}.", address.ToString());
947947
channel = await bootstrap.ConnectAsync(address, port).ConfigureAwait(false);
948+
break;
948949
}
949950
catch (AggregateException ae)
950951
{
@@ -955,9 +956,9 @@ Func<IPAddress[], int, Task<IChannel>> CreateChannelFactory(IotHubConnectionStri
955956
Debug.WriteLine("ConnectException trying to connect to {0}: {1}", address.ToString(), ex.ToString());
956957
return true;
957958
}
959+
958960
return false; // Let anything else stop the application.
959961
});
960-
961962
}
962963
}
963964

provisioning/transport/mqtt/src/Microsoft.Azure.Devices.Provisioning.Transport.Mqtt.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</PropertyGroup>
2020

2121
<PropertyGroup>
22-
<Version>1.1.2</Version>
22+
<Version>1.1.3</Version>
2323
<Title>Microsoft Azure IoT Provisioning Device Client MQTT Transport</Title>
2424
<Authors>Microsoft</Authors>
2525
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

provisioning/transport/mqtt/src/ProvisioningTransportHandlerMqtt.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ private async Task<RegistrationOperationStatus> ProvisionOverTcpUsingX509Certifi
191191
{
192192
if (Logging.IsEnabled) Logging.Info(this, $"Connecting to {address.ToString()}.");
193193
channel = await bootstrap.ConnectAsync(address, Port).ConfigureAwait(false);
194+
break;
194195
}
195196
catch (AggregateException ae)
196197
{
@@ -204,6 +205,7 @@ private async Task<RegistrationOperationStatus> ProvisionOverTcpUsingX509Certifi
204205
$"ConnectException trying to connect to {address.ToString()}: {ex.ToString()}");
205206
return true;
206207
}
208+
207209
return false; // Let anything else stop the application.
208210
});
209211

versions.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AssemblyPath, Version
22
iothub\device\src\Microsoft.Azure.Devices.Client.csproj, 1.17.1
33
iothub\service\src\Microsoft.Azure.Devices.csproj, 1.16.1
4-
shared\src\Microsoft.Azure.Devices.Shared.csproj, 1.15.0
4+
shared\src\Microsoft.Azure.Devices.Shared.csproj, 1.15.1
55
provisioning\device\src\Microsoft.Azure.Devices.Provisioning.Client.csproj, 1.1.0
66
provisioning\transport\amqp\src\Microsoft.Azure.Devices.Provisioning.Transport.Amqp.csproj, 1.1.2
77
provisioning\transport\http\src\Microsoft.Azure.Devices.Provisioning.Transport.Http.csproj, 1.1.0

0 commit comments

Comments
 (0)