Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
22273838
Commit
22273838
authored
Oct 27, 2016
by
Philip Gladstone
Committed by
Marcel Stör
Oct 27, 2016
Browse files
Small improvement to http client (#1558)
parent
ebb537c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/http/httpclient.c
View file @
22273838
...
@@ -412,13 +412,6 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
...
@@ -412,13 +412,6 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
}
}
static
void
ICACHE_FLASH_ATTR
http_error_callback
(
void
*
arg
,
sint8
errType
)
{
HTTPCLIENT_DEBUG
(
"Disconnected with error
\n
"
);
http_disconnect_callback
(
arg
);
}
static
void
ICACHE_FLASH_ATTR
http_timeout_callback
(
void
*
arg
)
static
void
ICACHE_FLASH_ATTR
http_timeout_callback
(
void
*
arg
)
{
{
HTTPCLIENT_DEBUG
(
"Connection timeout
\n
"
);
HTTPCLIENT_DEBUG
(
"Connection timeout
\n
"
);
...
@@ -440,6 +433,13 @@ static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
...
@@ -440,6 +433,13 @@ static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
}
}
static
void
ICACHE_FLASH_ATTR
http_error_callback
(
void
*
arg
,
sint8
errType
)
{
HTTPCLIENT_DEBUG
(
"Disconnected with error: %d
\n
"
,
errType
);
http_timeout_callback
(
arg
);
}
static
void
ICACHE_FLASH_ATTR
http_dns_callback
(
const
char
*
hostname
,
ip_addr_t
*
addr
,
void
*
arg
)
static
void
ICACHE_FLASH_ATTR
http_dns_callback
(
const
char
*
hostname
,
ip_addr_t
*
addr
,
void
*
arg
)
{
{
request_args_t
*
req
=
(
request_args_t
*
)
arg
;
request_args_t
*
req
=
(
request_args_t
*
)
arg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment