locked
Why is PeerFinder.ConnectAsync() causing network to become unresponsive on win 8.1? RRS feed

  • Question

  • I am trying to get network connectivity between proximal devices in a windows store app to work, and for the most part, it does.  However it is quite unstable.  The basic flow of connecting goes like this (pseudocode of course):

    PC1: PeerFinder.Role=PeerRole.Host;

    PC1: PeerFinder.Start();

    PC2: PeerFinder.Role=PeerRole.Client;

    PC2: PeerFinder.Start();

    PC2: PeerFinder.FindAllPeersAsync();

    PC2: PeerFinder.ConnectAsync(foundHostInfo);

    PC1: PeerFinder.ConnectionRequested event received;

    PC1: PeerFinder.ConnectAsync(peerInfo);

    PC2: Connected, start reading and writing to socket

    PC1: Connected, start reading and writing to socket

    PC2: PeerFinder.Stop();

    PC1: wait for more connection requests...

    Some of the time it works just fine,  and I can connect 3 devices, and the communication works well.  Other times, the first device connects, and any subsequent connection requests cause the host to stop on PC1: PeerFinder.ConnectAsync(PeerInfo), and it seemingly will never return from that call.  Eventually the client will get an error.

    When this condition happens, the wireless network is no longer able to connect, and any program that tries to use it will receive a Device is unavailable error, the network status will show as being connected to a wireless network but the status will be limited, and the wifi settings charm shows that no networks are available.  The only fix I have found is a reboot.

    I am hoping this is just a quirk in the pre-release version of 8.1, but I have not been able to find any information about it.

    The same behavior is exhibited in the sample app found here: http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731/view/Discussions#content

    Just go to the peerfinder scenario, and start, and stop the host/client a few times on a couple PCs, and it will lock up.

    I would appreciate any insight into this issue.

    Thanks!


    edit:

    I can repro this on the Surface Pro, Samsung Slate, and Acer Iconia (which are the only tablets I currenty own)


    Saturday, July 27, 2013 6:09 PM

Answers

  • Hello Lance,

    This issue is related to your Network Interface drivers being the pre-release version and there are known reliability issues at the time Release Preview of Windows 8.1 was released. We are working diligently with our WLAN partners to improve driver quality and reliability for the RTM release.

    Thanks,

    Prashant


    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    Friday, August 2, 2013 4:57 PM
    Moderator

All replies

  • I'll look into this and get back to you on whether I was able to reproduce the problem or not.

    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    Tuesday, July 30, 2013 4:52 PM
    Moderator
  • Hello Lance,

    This issue is related to your Network Interface drivers being the pre-release version and there are known reliability issues at the time Release Preview of Windows 8.1 was released. We are working diligently with our WLAN partners to improve driver quality and reliability for the RTM release.

    Thanks,

    Prashant


    Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz

    Friday, August 2, 2013 4:57 PM
    Moderator
  • Thanks, will there be an update before the RTM?
    Saturday, August 3, 2013 1:25 AM