mirror of
https://github.com/lxsang/ant-http
synced 2025-07-26 02:29:47 +02:00
add timeout per connection
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
#define __RESULT__ "{\"result\":%d,\"msg\":\"%s\"}"
|
||||
#define FORM_URL_ENCODE "application/x-www-form-urlencoded"
|
||||
#define FORM_MULTI_PART "multipart/form-data"
|
||||
#define MAX_ATTEMPT 1000
|
||||
#define MAX_WAIT_S 20 // 1/3 minute
|
||||
#ifdef USE_OPENSSL
|
||||
int __attribute__((weak)) usessl();
|
||||
#endif
|
||||
@ -38,7 +38,7 @@ typedef struct{
|
||||
#ifdef USE_OPENSSL
|
||||
int status;
|
||||
#endif
|
||||
int attempt;
|
||||
time_t last_wait;
|
||||
} antd_client_t;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user