I have set a timeout 500ms in libusb_interrupt_transfer().
>From the debug log:
libusbx: debug [hid_submit_bulk_transfer] matched endpoint 81 with interface 0
libusbx: debug [hid_submit_bulk_transfer] reading 26 bytes (report ID: 0x00)
libusbx: debug [usbi_add_pollfd] add fd 2 events 1
libusbx: debug [libusb_get_next_timeout] next timeout in 0.499721s
libusbx: debug [libusb_handle_events_timeout_completed] doing our own event
handling
libusbx: debug [handle_events] poll() 3 fds with timeout in 500ms
libusbx: debug [handle_events] poll() returned 0
libusbx: debug [libusb_cancel_transfer]
libusbx: debug [libusb_get_next_timeout] no URB with timeout or all handled by
OS; no timeout!
libusbx: debug [libusb_handle_events_timeout_completed] doing our own event
handling
libusbx: debug [handle_events] poll() 3 fds with timeout in 60000ms
libusbx: debug [handle_events] poll() returned 1
libusbx: debug [windows_handle_events] checking fd 0 with revents = 0000
libusbx: debug [windows_handle_events] checking fd 1 with revents = 0000
libusbx: debug [windows_handle_events] checking fd 2 with revents = 0001
libusbx: debug [usbi_remove_pollfd] remove fd 2
libusbx: debug [windows_transfer_callback] handling I/O completion with errcode
995, size 0
---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/160#issuecomment-28963418
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel