This GIST demonstrates the performance vs reliability trade off with the waitFor parameter in server.setsendtimeoutpolicy