Ticket #94 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

StreamSocket always returns a Packet

Reported by: Laurent Butti Assigned to: pbi
Priority: minor Milestone: mainstream
Component: Scapy Version:
Keywords: StreamSocket Cc:

Description

In class StreamSocket?()

When self.ins.recv(x, socket.MSG_PEEK) returns an empty string (connection closed), this may result in an endless loop as recv() in StreamSocket? will always return a Packet for an empty string.

Laurent.

Attachments

scapy.streamsocket.patch (390 bytes) - added by anonymous on 03/06/08 14:59:00.

Change History

03/06/08 14:59:00 changed by anonymous

  • attachment scapy.streamsocket.patch added.

08/17/08 00:49:20 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Patch was incorrect: a supersocket must return a Packet instance or None. It can't return a string. Fixed in [43a62f893a90]


Add/Change #94 (StreamSocket always returns a Packet)




Change Properties
Action