Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#27 SynchSubmit Control Request w/device re-enumerates can hang

TCK
closed-fixed
Dan Streetman
API (5)
7
2004-06-24
2004-05-11
Joshua Lowry
No

If I do a SynchSubmit of a ControlIRP while I'm re-
enumerating a UsbDevice, I should be getting an
UsbException. Instead, when the SyncSubmit does an
AsynchSubmit on the usbControlIrpImpl, then calls
waitUntilComplete on the usbControlIrpImpl, it
sometimes never returns from the waitUntilComplete and
waits forever.

In this particular test case, I send a vendor request to
re-enumerate the device to cause it to re-enumerate,
followed by another request to re-enumerate which
should get the UsbException, since the device isn't
currently available.

Discussion

  • Dan Streetman
    Dan Streetman
    2004-05-24

    • assigned_to: nobody --> ddstreet
     
  • Dan Streetman
    Dan Streetman
    2004-05-26

    Logged In: YES
    user_id=23654

    This will most likely require an API change or at best a behavior change
    (which is essentially the same as an API change). Certain methods need to
    be able to throw a UsbDisconnectedException (which needs to be a new
    exception). I will make this API change in CVS.

     
  • Dan Streetman
    Dan Streetman
    2004-05-26

    • priority: 5 --> 7
     
  • Dan Streetman
    Dan Streetman
    2004-05-26

    • labels: 613395 --> API
     
  • Dan Streetman
    Dan Streetman
    2004-06-24

    Logged In: YES
    user_id=23654

    UsbDisconnectException added to API and RI, it should cover
    this test case. A UsbDisconnectException should be thrown.

     
  • Dan Streetman
    Dan Streetman
    2004-06-24

    • status: open --> closed-fixed