mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Removed noisy debug messages
This commit is contained in:
1 parent
b03358cb03
commit
f266dd2c94
1 file changed
+4
-9
+4
-9
@@ -767,9 +767,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
|
|||||||
{
|
{
|
||||||
n = recv(conn->sock, buf, sizeof(buf), 0);
|
n = recv(conn->sock, buf, sizeof(buf), 0);
|
||||||
}
|
}
|
||||||
|
DBG(("%p <- %d bytes", conn, n));
|
||||||
DBG(("%p <- %d bytes [%.*s%s]",
|
|
||||||
conn, n, n < 40 ? n : 40, buf, n < 40 ? "" : "..."));
|
|
||||||
|
|
||||||
if (ns_is_error(n)) {
|
if (ns_is_error(n)) {
|
||||||
conn->flags |= NSF_CLOSE_IMMEDIATELY;
|
conn->flags |= NSF_CLOSE_IMMEDIATELY;
|
||||||
@@ -799,8 +797,7 @@ static void ns_write_to_socket(struct ns_connection *conn) {
|
|||||||
#endif
|
#endif
|
||||||
{ n = send(conn->sock, io->buf, io->len, 0); }
|
{ n = send(conn->sock, io->buf, io->len, 0); }
|
||||||
|
|
||||||
DBG(("%p -> %d bytes [%.*s%s]", conn, n, io->len < 40 ? (int) io->len : 40,
|
DBG(("%p -> %d bytes", conn, n));
|
||||||
io->buf, io->len < 40 ? "" : "..."));
|
|
||||||
|
|
||||||
ns_call(conn, NS_SEND, &n);
|
ns_call(conn, NS_SEND, &n);
|
||||||
if (ns_is_error(n)) {
|
if (ns_is_error(n)) {
|
||||||
@@ -4213,8 +4210,7 @@ static void on_recv_data(struct connection *conn) {
|
|||||||
struct iobuf *io = &conn->ns_conn->recv_iobuf;
|
struct iobuf *io = &conn->ns_conn->recv_iobuf;
|
||||||
|
|
||||||
try_parse(conn);
|
try_parse(conn);
|
||||||
DBG(("%p %d %zu %d [%.*s]", conn, conn->request_len, io->len,
|
DBG(("%p %d %zu %d", conn, conn->request_len, io->len, conn->ns_conn->flags));
|
||||||
conn->ns_conn->flags, (int) io->len, io->buf));
|
|
||||||
if (conn->request_len < 0 ||
|
if (conn->request_len < 0 ||
|
||||||
(conn->request_len > 0 && !is_valid_uri(conn->mg_conn.uri))) {
|
(conn->request_len > 0 && !is_valid_uri(conn->mg_conn.uri))) {
|
||||||
send_http_error(conn, 400, NULL);
|
send_http_error(conn, 400, NULL);
|
||||||
@@ -4271,8 +4267,7 @@ static void process_response(struct connection *conn) {
|
|||||||
struct iobuf *io = &conn->ns_conn->recv_iobuf;
|
struct iobuf *io = &conn->ns_conn->recv_iobuf;
|
||||||
|
|
||||||
try_parse(conn);
|
try_parse(conn);
|
||||||
DBG(("%p %d %zu [%.*s]", conn, conn->request_len, io->len,
|
DBG(("%p %d %zu", conn, conn->request_len, io->len));
|
||||||
io->len > 40 ? 40 : (int) io->len, io->buf));
|
|
||||||
if (conn->request_len < 0 ||
|
if (conn->request_len < 0 ||
|
||||||
(conn->request_len == 0 && io->len > MAX_REQUEST_SIZE)) {
|
(conn->request_len == 0 && io->len > MAX_REQUEST_SIZE)) {
|
||||||
call_http_client_handler(conn);
|
call_http_client_handler(conn);
|
||||||
|
|||||||
Reference in new issue
Block a user