SocketService: set socket operation timeout before connecting#5911
Conversation
|
i think this PR fixes your problem, please test it! |
|
@ilyam8 |
Yes.
Will hang only for 2 seconds there. |
|
@ilyam8 |
|
@Steve8291 it seems you have configured |
|
@ilyam8 |
Ye, i suggest to change default policy to |
…a#5911) * set socket operation timeout before connecting * add connect, read, write timeouts * remove .setblocking calls * set default timeouts to 2
Summary
Fixes: #5541
This PR:
setblockingcallssets socket timeout before call to
connectadds separate
connect,readandwritetimeouts. Default is 2 seconds for all.Component Name
/collectors/python.d.plugin/python_modules/bases/FrameworkServices/SocketServiceAdditional Information