Skip to content

Isotp soft socket sr1 hang/no return and timeout= was specified #4838

@BenGardiner

Description

@BenGardiner

Brief description

In between 2.6.0-rc2 and 2.6.0 this started for me . Problem occurs also in 2.6.1

In working (from my perspective) version using isotp soft socket .sr1() to an ecu which does not respond will eventually return with empty response when timeout= was passed

In broken versions .sr1() blocks indefinitely.

Scapy version

2.6.1

Python version

3.11.11

Operating system

Windows 11

Additional environment information

No response

How to reproduce

Issue a UDS request with an isotp soft socket .sr1() and a non-zero timeout. Choose IDs such that the there will be no response from the target ECU.

Actual result

sr1() blocks indefinitely

Expected result

Expected result is a return sometime after the timeout.

Related resources

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions