Skip to content

fix(corekit): SeekableReader reopens its NamedTemporaryFile by name, which Windows refuses #2098

Closed

Description

@JarryShaw

Job 120605026883, the first Windows run of #2095's leg: SeekableReaderTests.test_buffer_save_default_path_and_rollover_reads and test_saved_readline_and_empty_buffer_refill_edges fail with PermissionError: [Errno 13] at open(self._buffer_path, 'rb').

With buffer_save=True and no buffer_path, SeekableReader.__init__ creates a NamedTemporaryFile('wb', buffering=0) and later reopens it by name. Windows refuses to open a NamedTemporaryFile a second time while it is open, so --buffer-save breaks there.

Proposed: delete=False (or mkstemp) and unlink in close(). This is a #2060 phase-2 prerequisite.

Activity

  1. added
    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 23, 2026
  2. moved this to Pending in PyPCAPKiton Oct 23, 2026
  3. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 23, 2026
  4. moved this from Pending to WIP in PyPCAPKiton Oct 23, 2026
  5. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 23, 2026
  6. added this to the PyPCAPKit v1.5 milestone on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions