mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 00:25:56 +03:00
[GH-ISSUE #1645] Response breakpoint closes the connection #1639
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1639
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @af-jul on GitHub (May 22, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1645
Originally assigned to: @NghiaTranUIT on GitHub.
Description
I have the following in my App:
If I don't specify any breakpoints in Proxyman everything works well, but as soon as I enable response breakpoints and deliver the 401 to my App, my retry call that uses the same connection as the original request fails with a
java.net.ProtocolException: Unexpected status line: 0while establishing the connection. So it appears that this connection has silently be closed.Steps to Reproduce
Connection: closeheader in the 401 response after it hit the breakpoint, seems to work but is not my desired solutionCurrent Behavior
Proxyman seems to silently close the connection when receiving a 401 response from the server and delivering it back to my App.
Further requests on the same connection fail, with such a breakpoint in between, while it is working when I disable the breakpoints.
Expected Behavior
The connection should be kept open / mirror the server state.
Environment
@NghiaTranUIT commented on GitHub (May 23, 2023):
@af-jul just wondering: Does this bug only happen with the 401 status code?
@af-jul commented on GitHub (May 23, 2023):
@NghiaTranUIT that's actually hard to test. It seems like the issue only occurs if the server already responds with this status code and not if I modify the code when the response hit the breakpoint. I was at least able to get the same issue on 404 (that's easy to get from the server) but I'm not sure about other status codes.