-
|
I found there may be a default timeout setting I want to set it manually, didn't find out how to achieve this. I tried before Still no effect. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
I found this is interesting, here is my scenario, sometimes I need to run multi-times in one program lifecycle to send udp,tcp and tls OPTION. and when this happened, tcp and tls all lose timeout limitation... |
Beta Was this translation helpful? Give feedback.
hi @zcc0077 . I am not clear where you want to timeout.
TransactionRequestctxhas only effect on building connection, but not on response. It returns you transaction object on which you wait for response until transaction timeouts from SIP timers. More on this belowOfcourse you can wrap this with timeout on how long you want to wait.
sipgo is currently more on low level API, comparing like std http, I avoid wrapping too much. I see some potential like wrapping this stuff for things where you want to just send request and get response. In this case ctx behavior would be extended.
As for transaction timeouts. You need to watch also on SIP timers. So transaction can timeout
tx.Done()due t…