Skip to content

Commit 206f1be

Browse files
authored
Add EOF condition to HTTP_Server state SERVE (#4577)
1 parent a9eed2d commit 206f1be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scapy/layers/http.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,10 @@ def SERVE(self, pkt=None):
11731173
else:
11741174
self.vprint("%s" % pkt.summary())
11751175

1176+
@ATMT.eof(SERVE)
1177+
def serve_eof(self):
1178+
raise self.CLOSED()
1179+
11761180
@ATMT.receive_condition(SERVE)
11771181
def new_request(self, pkt):
11781182
raise self.SERVE(pkt)

0 commit comments

Comments
 (0)