mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
network/http-launch: Disconnect clients if there was no valid HTTP request after 1MB of data
This commit is contained in:
parent
9228d05bf3
commit
e38e9ce609
1 changed files with 5 additions and 1 deletions
|
@ -220,7 +220,11 @@ on_read_bytes (GPollableInputStream * stream, Client * client)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: If too large, disconnect client */
|
if (client->current_message->len >= 1024 * 1024) {
|
||||||
|
g_print ("No complete request after 1MB of data\n");
|
||||||
|
remove_client (client);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue