Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Make tcpclient TCP timeout setter public #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BarthV
Copy link

@BarthV BarthV commented Mar 7, 2022

While timeout feature have correctly been implemented on tcpclient.go, we're not currently able to change the default value (1s) to anything else because all accesser are private !

I really need to extend or reduce this timeout without needing to fork the project.

If this PR is too naive please comment & I'll be OK to write a more detailled code change.

Thanks a lot

@thinkgos
Copy link
Member

thinkgos commented Mar 8, 2022

NewTCPClientProvider with option (WithTCPTimeout) is not meet you need ?? you want dynamic change it ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants