Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the -timeout parameter does not work with TCP transport #28

Open
denyspozniak opened this issue Jul 10, 2024 · 0 comments
Open

the -timeout parameter does not work with TCP transport #28

denyspozniak opened this issue Jul 10, 2024 · 0 comments

Comments

@denyspozniak
Copy link

Hey!
It looks like the -timeout parameter does not work with TCP transport.
This can be easily reproduced:

# time sipexer -timeout 10000 tcp:8.8.8.8:5060
...
[error] [sipexer.go:1875] main.SIPExerSendTCP(): error: dial tcp4 8.8.8.8:5060: connect: connection timed out
0.01s user 0.00s system 0% cpu 2:11.44 total

# time sipexer -timeout 10000 udp:8.8.8.8:5060
...
[info] [sipexer.go:1616] main.SIPExerDialogLoop(): trying again - new timeout at 3500ms
[info] [sipexer.go:1616] main.SIPExerDialogLoop(): trying again - new timeout at 7500ms
[error] [sipexer.go:1619] main.SIPExerDialogLoop(): error reading - bytes 0 - <nil>
0.00s user 0.00s system 0% cpu 7.535 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant