From b6b5de0741aa4b566f93a91509f0ad49d6b360bb Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 5 Apr 2008 15:14:30 +0000 Subject: [PATCH] Use a more reasonable timeout of 1 second for synchronous USB requests. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24810 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/usb/Pipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/bus_managers/usb/Pipe.cpp b/src/add-ons/kernel/bus_managers/usb/Pipe.cpp index e2bcc13dab..53c3b0f6c1 100644 --- a/src/add-ons/kernel/bus_managers/usb/Pipe.cpp +++ b/src/add-ons/kernel/bus_managers/usb/Pipe.cpp @@ -322,9 +322,9 @@ ControlPipe::SendRequest(uint8 requestType, uint8 request, uint16 value, } // the sem will be released in the callback after the result data was - // filled into the provided struct. use a 5 seconds timeout to avoid + // filled into the provided struct. use a 1 second timeout to avoid // hanging applications. - if (acquire_sem_etc(transferResult->notify_sem, 1, B_RELATIVE_TIMEOUT, 5000000) < B_OK) { + if (acquire_sem_etc(transferResult->notify_sem, 1, B_RELATIVE_TIMEOUT, 1000000) < B_OK) { TRACE_ERROR(("USB ControlPipe: timeout waiting for queued request to complete\n")); delete_sem(transferResult->notify_sem);