This hopen timeout is more for the case when the remote process is not responsive during connection (busy with another query, in debug mode, etc.). When there is no process listening on the target port, hopen fails straightaway. If you do want a hopen-with-retry kind of semantics, it’d better to just write your little wrapper around hopen with a while loop or something similar.