X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-devtools%2Fpython%2Ffiles%2Feventlet%2F0001-CGTS-2869-close-connection-on-HTTP-413-Request-Entit.patch;fp=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-devtools%2Fpython%2Ffiles%2Feventlet%2F0001-CGTS-2869-close-connection-on-HTTP-413-Request-Entit.patch;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=05a28b85c2a59e1a4598c7208182678810235810;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/eventlet/0001-CGTS-2869-close-connection-on-HTTP-413-Request-Entit.patch b/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/eventlet/0001-CGTS-2869-close-connection-on-HTTP-413-Request-Entit.patch deleted file mode 100644 index 05a28b8..0000000 --- a/meta-starlingx/meta-stx-cloud/recipes-devtools/python/files/eventlet/0001-CGTS-2869-close-connection-on-HTTP-413-Request-Entit.patch +++ /dev/null @@ -1,28 +0,0 @@ -From bdbcd8615e1720b4098296752a2f4273a0947a8d Mon Sep 17 00:00:00 2001 -From: Daniel Badea -Date: Tue, 6 Sep 2016 15:09:39 +0000 -Subject: [PATCH] CGTS-2869 close connection on HTTP 413 Request Entity Too - Large - -Discard request body in case it's too large: close connection -wile request is in progress. ---- - eventlet/wsgi.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/eventlet/wsgi.py b/eventlet/wsgi.py -index 6af2b99..8eac966 100644 ---- a/eventlet/wsgi.py -+++ b/eventlet/wsgi.py -@@ -525,6 +525,8 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler): - finally: - if hasattr(result, 'close'): - result.close() -+ if str(status_code[0]) == '413': -+ self.close_connection = 1 - request_input = self.environ['eventlet.input'] - if (request_input.chunked_input or - request_input.position < (request_input.content_length or 0)): --- -1.8.3.1 -