Skip to content

Commit

Permalink
Add EOF condition to HTTP_Server state SERVE (#4577)
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa authored Nov 3, 2024
1 parent a9eed2d commit 206f1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scapy/layers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,10 @@ def SERVE(self, pkt=None):
else:
self.vprint("%s" % pkt.summary())

@ATMT.eof(SERVE)
def serve_eof(self):
raise self.CLOSED()

@ATMT.receive_condition(SERVE)
def new_request(self, pkt):
raise self.SERVE(pkt)
Expand Down

0 comments on commit 206f1be

Please sign in to comment.