The stochastic geyser problem for first-passage times