Skip to content

System.Net.Internals.SocketExceptionFactory+ExtendedSocketException on ubuntu 16.4 #20744

@asperheim

Description

@asperheim

I am getting the System.Net.Internals.SocketExceptionFactory exception while using a console app with AMQP.Net Lite. It can send houndreds or sometimes thousands of messages to Azure Servicebus instance. But it allways fails after a while with this exception:

System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Unknown error -1
   at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
   at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
   at System.Net.Dns.<>c.<GetHostAddressesAsync>b__14_1(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amqp.TcpTransport.<ConnectAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amqp.TcpTransport.Connect(Connection connection, Address address, Boolean noVerification)
   at Amqp.Connection.Connect(SaslProfile saslProfile, Open open)
   at Amqp.Connection..ctor(Address address, SaslProfile saslProfile, Open open, OnOpened onOpened)
   at TheMOON.Extensions.ServiceBus.ServiceBusMessageSenderClient.<SendMessageAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at TheMOON.Extensions.ServiceBus.ServiceBusMessageSenderClient.<SendMessageAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at TheMoon.EcomDbSyncer.Services.Handlers.ChangeHandlerCommons.<SendToQueue>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at TheMoon.EcomDbSyncer.Services.Handlers.ProductChangeHandler.<Handle>d__7.MoveNext()

The system is a Ubuntu 16.4 instance running in Azure.

Microsoft .NET Core Shared Framework Host

  Version  : 1.1.0
  Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

I have not yet tried to feed the queueclient with the IP instead of the servicebus instance DNS name. Disregarding the certificate trouble this will induce, i am assuming this would be a workaround.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions