The timeout in the scan parameters is not handled at all, the scan operation timeout doesn't timeout at the expected time, in fact it doesn't timeout at all.
@pan- could you take a look at this branch ?