Forcibly closed by Host

27 views
Skip to first unread message

Drew Buckley

unread,
Jun 13, 2017, 4:19:09 AM6/13/17
to netmq-dev
Hi,

i've been testing PGM Multicast with NetMQ and find that i'm receiving this error only with PC's on Wifi. Nothing has changed application wise. the Publisher is still Publishing and the Subscribers still receiving (the ones connected via LAN cables) only the Wifi connection?

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at AsyncIO.Windows.Socket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags flags)
   at AsyncIO.SocketExtensions.Receive(AsyncSocket socket, Byte[] buffer)
   at NetMQ.Core.Transports.Pgm.PgmSession.BeginReceive()
   at NetMQ.Core.Transports.Pgm.PgmSession.NetMQ.Core.Transports.IEngine.Plug(IOThread ioThread, SessionBase session)
   at NetMQ.Core.SessionBase.ProcessAttach(IEngine engine)
   at NetMQ.Core.ZObject.ProcessCommand(Command cmd)
   at NetMQ.Core.IOThread.Ready()
   at NetMQ.Core.IOThreadMailbox.RaiseEvent()
   at NetMQ.Core.Utils.Proactor.Loop()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

i've tried to catch the exception however it only shows up as an UnhandledException with this info.

the app connected via Wifi can sometimes run ok for 30 minutes to an hour but always gets this error at some stage. sometimes only 10 minutes. the connection code is the same for both Wifi and Lan connected pc's but is working perfectly on LAN.

my thought was if i can catch it for the Wifi connected PC's i could disconnect and reconnect but being an Unhandledexception, it want's to terminate the app.

are there any known issues with NetMQ PGM Multicast and Wifi? appreciate any input.
Reply all
Reply to author
Forward
0 new messages