Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinUSB Error 121 - semaphore timeout

151 views
Skip to first unread message

Asaf Shelly

unread,
Dec 22, 2009, 5:58:02 AM12/22/09
to
Asking WinUSB to read a large buffer will fail with error 121 - "The
semaphore timeout period has expired" which means "timeout".
It looks like this result means that the function failed to fill the entire
buffer but there is some data in the buffer and the LengthTransferred
parameter says that there was some data sent.
Can anyone verify that? The documentation forgot to mention error 997 and 121.

Asaf

Tim Roberts

unread,
Dec 22, 2009, 11:58:56 PM12/22/09
to
Asaf Shelly <MSMedi...@Shelly.co.il> wrote:
>
>Asking WinUSB to read a large buffer will fail with error 121 - "The
>semaphore timeout period has expired" which means "timeout".
>It looks like this result means that the function failed to fill the entire
>buffer but there is some data in the buffer and the LengthTransferred
>parameter says that there was some data sent.
>Can anyone verify that?

Did you set a timeout with SetPipePolicy? If so, then I believe this is
the normal course of events. ERROR_SEM_TIMEOUT in that case is not so much
an "error" as it is a "success with conditions"

>The documentation forgot to mention error 997 and 121.

ERROR_IO_PENDING is part of the standard protocol for doing overlapped I/O.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

0 new messages