Aleksandr Maus
07/06/2022, 2:47 PMosquery> select * from curl where url='<https://httpstat.us/200?sleep=15500>';
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
| url | method | user_agent | response_code | round_trip_time | bytes | result |
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
| <https://httpstat.us/200?sleep=15500> | GET | osquery | 200 | 15703207 | 6 | 200 OK |
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
osquery> select * from curl where url='<https://httpstat.us/200?sleep=16000>';
W0706 10:45:20.738400 191976960 curl.cpp:83] Error making request: Operation timed out
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
| url | method | user_agent | response_code | round_trip_time | bytes | result |
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
| <https://httpstat.us/200?sleep=16000> | GET | osquery | | | | |
+-------------------------------------+--------+------------+---------------+-----------------+-------+--------+
Think this it the place where it is hardcoded:
https://github.com/osquery/osquery/blob/master/osquery/remote/transports/tls.cpp#L97
Any idea why 16 secs? Any plans to make it configurable?sharvil
08/01/2022, 2:05 PM