Is there a problem if timeout is disabled?

Usually there isn't. But, there can be some unexpected long waits in the callbacks you implemented and some influence from third-party system components. For example:

  1. For antivirus software that have file system filter drivers that attach above CBFS Connect, it's recommended to set the timeout to a value you determine to be expected and comfortable for users.
  2. A timeout of 30 sec or 1 min is fine. It helps to avoid deadlocks and very long waits in the system. In addition, you can use the ResetTimeout method for fine-tuning.
  3. If your callback should execute longer then the timeout that is specified in the MountMedia call and you control the situation.

Additionally, during development, it's usually better to disable the timeouts (by setting the Timeout parameter of the MountMedia method call to 0). This helps you to single-step code in callback/event handlers as long as you need.

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now