Configure timeout for acknowledging message

Can you provide more details about what you are doing here? What protocol, what language, what is the overall use case?