mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
LibHTTP+AK: Rename CHTTPJOB_DEBUG to HTTPJOB_DEBUG
This commit is contained in:
parent
b0790260f8
commit
a17b2248f2
Notes:
sideshowbarker
2024-07-18 03:23:00 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/a17b2248f22 Pull-request: https://github.com/SerenityOS/serenity/pull/12084
3 changed files with 10 additions and 10 deletions
|
@ -26,10 +26,6 @@
|
|||
#cmakedefine01 CALLBACK_MACHINE_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef CHTTPJOB_DEBUG
|
||||
#cmakedefine01 CHTTPJOB_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef CNETWORKJOB_DEBUG
|
||||
#cmakedefine01 CNETWORKJOB_DEBUG
|
||||
#endif
|
||||
|
@ -202,6 +198,10 @@
|
|||
#cmakedefine01 HTML_SCRIPT_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef HTTPJOB_DEBUG
|
||||
#cmakedefine01 HTTPJOB_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef HTTPSJOB_DEBUG
|
||||
#cmakedefine01 HTTPSJOB_DEBUG
|
||||
#endif
|
||||
|
|
|
@ -11,7 +11,6 @@ set(BMP_DEBUG ON)
|
|||
set(BXVGA_DEBUG ON)
|
||||
set(CACHE_DEBUG ON)
|
||||
set(CALLBACK_MACHINE_DEBUG ON)
|
||||
set(CHTTPJOB_DEBUG ON)
|
||||
set(CNETWORKJOB_DEBUG ON)
|
||||
set(COMMIT_DEBUG ON)
|
||||
set(COMPOSE_DEBUG ON)
|
||||
|
@ -76,6 +75,7 @@ set(HIGHLIGHT_FOCUSED_FRAME_DEBUG ON)
|
|||
set(HPET_COMPARATOR_DEBUG ON)
|
||||
set(HPET_DEBUG ON)
|
||||
set(HTML_SCRIPT_DEBUG ON)
|
||||
set(HTTPJOB_DEBUG ON)
|
||||
set(HTTPSJOB_DEBUG ON)
|
||||
set(HUNKS_DEBUG ON)
|
||||
set(ICMP_DEBUG ON)
|
||||
|
|
|
@ -17,22 +17,22 @@ void HttpJob::start(NonnullRefPtr<Core::Socket> socket)
|
|||
VERIFY(!m_socket);
|
||||
m_socket = move(socket);
|
||||
m_socket->on_error = [this] {
|
||||
dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_error callback");
|
||||
dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_error callback");
|
||||
deferred_invoke([this] {
|
||||
did_fail(Core::NetworkJob::Error::ConnectionFailed);
|
||||
});
|
||||
};
|
||||
m_socket->set_idle(false);
|
||||
if (m_socket->is_connected()) {
|
||||
dbgln_if(CHTTPJOB_DEBUG, "Reusing previous connection for {}", url());
|
||||
dbgln_if(HTTPJOB_DEBUG, "Reusing previous connection for {}", url());
|
||||
deferred_invoke([this] {
|
||||
dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback");
|
||||
dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback");
|
||||
on_socket_connected();
|
||||
});
|
||||
} else {
|
||||
dbgln_if(CHTTPJOB_DEBUG, "Creating new connection for {}", url());
|
||||
dbgln_if(HTTPJOB_DEBUG, "Creating new connection for {}", url());
|
||||
m_socket->on_connected = [this] {
|
||||
dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback");
|
||||
dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback");
|
||||
on_socket_connected();
|
||||
};
|
||||
bool success = m_socket->connect(m_request.url().host(), m_request.url().port_or_default());
|
||||
|
|
Loading…
Reference in a new issue