Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: projectdiscovery/utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7.3
Choose a base ref
...
head repository: projectdiscovery/utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.8.0
Choose a head ref
  • 6 commits
  • 5 files changed
  • 5 contributors

Commits on Dec 19, 2025

  1. test(httputil): add TestSemaphoreLeakDeadlock

    Co-authored-by: Egor <ezzer17@users.noreply.github.com>
    Signed-off-by: Dwi Siswanto <git@dw1.io>
    dwisiswant0 and Ezzer17 committed Dec 19, 2025
    Configuration menu
    Copy the full SHA
    fcf5221 View commit details
    Browse the repository at this point in the history
  2. feat(sizedpool): add Discard method to release semaphore slot

    Add `(*SizedPool[T]).Discard` method that releases the semaphore
    slot without returning the item to the underlying
    [sync.Pool]. This enables callers to properly
    release resources when intentionally discarding
    items (e.g., oversized buffers) instead of
    returning them to the pool.
    
    Also, refactor `(*SizedPool[T]).Put()` to use
    `(*SizedPool[T]).Discard()` internally.
    
    Signed-off-by: Dwi Siswanto <git@dw1.io>
    dwisiswant0 committed Dec 19, 2025
    Configuration menu
    Copy the full SHA
    7015483 View commit details
    Browse the repository at this point in the history
  3. fix(httputil): semaphore leak causing deadlock in buffer pool

    When `putBuffer()` discarded buffers (either
    oversized or when the large buffer channel was
    full), the sizedpool semaphore slot acquired by
    `getBuffer()` was never released. This caused
    semaphore exhaustion and eventual deadlock under
    sustained load with large response bodies.
    
    Call `bufPool.Discard()` in both discard paths to
    properly release the semaphore slot.
    
    Fixes #714.
    
    Signed-off-by: Dwi Siswanto <git@dw1.io>
    dwisiswant0 committed Dec 19, 2025
    Configuration menu
    Copy the full SHA
    c0579e1 View commit details
    Browse the repository at this point in the history
  4. chore(deps): bump machineid@c77eb356758248194e779cad2275fe0594e75f51 (#…

    …713)
    
    This helps to build projectdiscovery's projects in Fedora.
    
    Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
    mikelolasagasti authored Dec 19, 2025
    Configuration menu
    Copy the full SHA
    ea09756 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #715 from projectdiscovery/dwisiswant0/fix/respcha…

    …in-deadlock
    
    Fix `httputil.ResponseChain` deadlock
    Mzack9999 authored Dec 19, 2025
    Configuration menu
    Copy the full SHA
    c69ecd0 View commit details
    Browse the repository at this point in the history
  6. chore(deps): bump the modules group with 6 updates

    Bumps the modules group with 6 updates:
    
    | Package | From | To |
    | --- | --- | --- |
    | [github.com/projectdiscovery/fastdialer](https://github.com/projectdiscovery/fastdialer) | `0.4.17` | `0.4.18` |
    | [github.com/projectdiscovery/networkpolicy](https://github.com/projectdiscovery/networkpolicy) | `0.1.29` | `0.1.30` |
    | [github.com/projectdiscovery/retryabledns](https://github.com/projectdiscovery/retryabledns) | `1.0.109` | `1.0.110` |
    | [github.com/projectdiscovery/gologger](https://github.com/projectdiscovery/gologger) | `1.1.61` | `1.1.62` |
    | [github.com/projectdiscovery/hmap](https://github.com/projectdiscovery/hmap) | `0.0.96` | `0.0.97` |
    | [github.com/projectdiscovery/retryablehttp-go](https://github.com/projectdiscovery/retryablehttp-go) | `1.0.132` | `1.0.133` |
    
    
    Updates `github.com/projectdiscovery/fastdialer` from 0.4.17 to 0.4.18
    - [Release notes](https://github.com/projectdiscovery/fastdialer/releases)
    - [Commits](projectdiscovery/fastdialer@v0.4.17...v0.4.18)
    
    Updates `github.com/projectdiscovery/networkpolicy` from 0.1.29 to 0.1.30
    - [Release notes](https://github.com/projectdiscovery/networkpolicy/releases)
    - [Commits](projectdiscovery/networkpolicy@v0.1.29...v0.1.30)
    
    Updates `github.com/projectdiscovery/retryabledns` from 1.0.109 to 1.0.110
    - [Release notes](https://github.com/projectdiscovery/retryabledns/releases)
    - [Commits](projectdiscovery/retryabledns@v1.0.109...v1.0.110)
    
    Updates `github.com/projectdiscovery/gologger` from 1.1.61 to 1.1.62
    - [Release notes](https://github.com/projectdiscovery/gologger/releases)
    - [Commits](projectdiscovery/gologger@v1.1.61...v1.1.62)
    
    Updates `github.com/projectdiscovery/hmap` from 0.0.96 to 0.0.97
    - [Release notes](https://github.com/projectdiscovery/hmap/releases)
    - [Commits](projectdiscovery/hmap@v0.0.96...v0.0.97)
    
    Updates `github.com/projectdiscovery/retryablehttp-go` from 1.0.132 to 1.0.133
    - [Release notes](https://github.com/projectdiscovery/retryablehttp-go/releases)
    - [Commits](projectdiscovery/retryablehttp-go@v1.0.132...v1.0.133)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/projectdiscovery/fastdialer
      dependency-version: 0.4.18
      dependency-type: indirect
      update-type: version-update:semver-patch
      dependency-group: modules
    - dependency-name: github.com/projectdiscovery/networkpolicy
      dependency-version: 0.1.30
      dependency-type: indirect
      update-type: version-update:semver-patch
      dependency-group: modules
    - dependency-name: github.com/projectdiscovery/retryabledns
      dependency-version: 1.0.110
      dependency-type: indirect
      update-type: version-update:semver-patch
      dependency-group: modules
    - dependency-name: github.com/projectdiscovery/gologger
      dependency-version: 1.1.62
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: modules
    - dependency-name: github.com/projectdiscovery/hmap
      dependency-version: 0.0.97
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: modules
    - dependency-name: github.com/projectdiscovery/retryablehttp-go
      dependency-version: 1.0.133
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: modules
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] committed Dec 19, 2025
    Configuration menu
    Copy the full SHA
    8411c03 View commit details
    Browse the repository at this point in the history
Loading