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: bugrayanlmz/java-debug
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: microsoft/java-debug
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 21 files changed
  • 3 contributors

Commits on Nov 30, 2026

  1. Bump the github-actions group with 2 updates (microsoft#652)

    Bumps the github-actions group with 2 updates: [actions/setup-java](https://github.com/actions/setup-java) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token).
    
    
    Updates `actions/setup-java` from 6.2.0 to 6.3.0
    - [Release notes](https://github.com/actions/setup-java/releases)
    - [Commits](actions/setup-java@77dd5b2...d1374f8)
    
    Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0
    - [Release notes](https://github.com/actions/create-github-app-token/releases)
    - [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
    - [Commits](actions/create-github-app-token@64ab729...f418cff)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-java
      dependency-version: 6.3.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    - dependency-name: actions/create-github-app-token
      dependency-version: 3.4.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 30, 2026
    Configuration menu
    Copy the full SHA
    f29e011 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2026

  1. fix: harden debug session loopback binding, auth handshake, and DAP f…

    …raming (microsoft#653)
    
    * fix: harden debug session loopback binding, auth handshake, and DAP framing
    
    - Replace the shared wildcard debug server socket with per-session loopback
      (127.0.0.1) server sockets, a 256-bit JavaDebug-Auth handshake with
      constant-time verification, single-client socket closure, and an unused
      session timeout reaper (protocolVersion >= 2 via startDebugSession).
    - Enforce initialize lifecycle gating in DebugAdapter before request
      argument deserialization, guard AttachRequestHandler against uninitialized
      contexts, and prevent self-PID termination in DebuggeeProcessHelper.
    - Slice inbound Content-Length frames by UTF-8 byte length rather than UTF-16
      character count in AbstractProtocolServer, with header and body size bounds.
    - Bind JDI launch listening sockets strictly to 127.0.0.1 via
      LoopbackSocketListeningConnector with debugger-first JDWP-Handshake
      validation and guaranteed stopListening cleanup across launch error paths.
    - Add unit and OSGi end-to-end regression tests covering authentication,
      framing, initialization gating, loopback JDI listening, launch,
    oDebug,
      and �ttach flows.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * test: handle TCP reset when server closes rejected sockets on macOS
    
    On BSD/macOS kernels, closing a socket while unread client bytes remain in
    SO_RCVBUF sends a TCP RST (SocketException: Connection reset) rather than a
    FIN (-1 EOF). Accept either EOF or SocketException after connect when verifying
    that unauthenticated or invalid-token sockets are closed without emitting any
    DAP response.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * fix: bound JDWP packet length, handshake deadline, and rejected listener cleanup
    
    - Enforce an upper JDWP packet-size bound (64 MiB default) in
      LoopbackSocketConnection.readPacket() and close the connection before
      allocating oversized buffers.
    - Enforce an absolute wall-clock deadline across performJdwpHandshake() reads
      so slow-drip peers cannot stretch per-read SO_TIMEOUT.
    - Remove and close session listeners when executor submission throws in
      startDebugSession() and startLegacyLoopbackSession().
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * fix(plugin): isolate session pools, bound auth deadline, and serialize JDWP I/O
    
    Separate listener, handshake, and session worker pools with per-listener candidate permits, enforce an absolute authentication handshake deadline across reads, and serialize JDWP socket packet reads and writes while preserving mid-packet EOF errors.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * fix(plugin): bound launch failure cleanup and async test javac drain
    
    Close the JDWP listener immediately on launch failure, drain debuggee stdout/stderr asynchronously with bounded timeouts while terminating the child process, and drain javac output asynchronously in end-to-end test compilation.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * fix: complete launch future only from winning outcome handler
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    * feat: add JDWP handshake usage telemetry and handshake timeout overrides
    
    Record structured `jdwp handshake` usage telemetry (`outcome`, `duration`, `timeoutMs`)
    inside `LoopbackSocketListeningConnector.performJdwpHandshake` and allow overriding
    the 5-second DAP and JDWP handshake timeouts via `java.debug.dap.handshakeTimeoutMs`
    and `java.debug.jdwp.handshakeTimeoutMs` system properties.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    chagong and Copilot authored Dec 3, 2026
    Configuration menu
    Copy the full SHA
    0afe9fd View commit details
    Browse the repository at this point in the history
Loading