mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
Fix SCGI event_read: return on partial header read instead of closing connection @trim21
This commit is contained in:
@@ -120,6 +120,9 @@ SCgiTask::event_read() {
|
||||
if (current == m_buffer.data())
|
||||
return;
|
||||
|
||||
if (current == m_buffer.data() + m_position)
|
||||
return;
|
||||
|
||||
if (*current != ':' || header_size < 17 || header_size > max_header_size)
|
||||
goto event_read_failed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user