[forward-port] txn queue polling with timeout.

all lines / branches hit