[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Hi[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I am running a web server on NP2 (previously on NP1) and it seems to run ok.[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]The problem is, when I start pushing it - a little too much processing for each received message combined with hysterical pushing the refresh button on the browser (more than 4 times in Debug mode - a little more en Release mode) - it falls over!.[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have tried most of the servers shown in this forum, and they usually works when testing, but when pushing them as above, the same thing happens. [/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have not been successful trying to multitask.[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have nailed Down the problem to the "socket.Accept" statement.[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I get this exception: “[/color][color=rgb(30,30,30);]A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll[/color][color=rgb(34,34,34);]”, the first message is received and then everything stops. Other tasks (Onewire and display) are still running.[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Questions:[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a limit to how many outstanding messages the socket Accept wil have? And if så – how many?[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a way to overcome the problem?[/color][/font]
[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Any help is appreciated.[/color][/font]