Issue #2373287 by estha: Add timeout to visitor context promises.
Merge branch 'Issue-2373287' into 7.x-1.x