lunchtimemama/Mono.Upnp — Issue #7: Socket Exception
Author: tilosag
Created: 2012-01-17 21:11:28+00:00
State: open

Hi,

System.Net.Sockets.SocketException was unhandled
Message=A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
Source=System
ErrorCode=10040
NativeErrorCode=10040
StackTrace:
w System.Net.Sockets.Socket.EndReceiveFrom(IAsyncResult asyncResult, EndPoint& endPoint)
w Mono.Ssdp.MulticastReader.OnAsyncResultReceived(IAsyncResult asyncResult) w C:\Users\episage\Documents\Projects\lunchtimemama-Mono.Upnp-4190b7b\src\Mono.Ssdp\Mono.Ssdp\Mono.Ssdp\MulticastReader.cs:wiersz 56
w System.Net.LazyAsyncResult.Complete(IntPtr userToken)
w System.Net.ContextAwareResult.CompleteCallback(Object state)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
w System.Net.ContextAwareResult.Complete(IntPtr userToken)
w System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
w System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
w System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
InnerException:

I temporarily changed buffer size to 2048 and it works.
Tested on environment with lots of upnp devices.
I can reproduce the errors. (tilosag