Comments (7)
Thanks @theotherian. Does the commit above do what you want?
from littleproxy.
Yep, looks functionally the same as what I did. Should work just fine.
That said, if I may make a suggestion...
One of the other changes I made was changing the state of the HttpRequestHandler to maintain the HttpRequest instances regardless of whether or not useJmx was set to true. I also made a subclass of IdleAwareHandler that accepts an HttpRequestHandler in its constructor. This allowed me to find the requests that weren't fulfilled and log information that would tell me what resources were running slow. I'm not sure if this is a broad enough use case to justify the work, but it's certainly handy for debugging purposes while testing.
from littleproxy.
Sounds great. Any interest in putting in a pull request to get those changes in?
from littleproxy.
Sorry it's taken more forever to get back to you on this.
Yes, I want to put a pull request in. :)
Right now I'm working on trying to get the right patch file put together. My IDE made a bunch of whitespace changes that are totally unnecessary, so I'm working on creating a patch that just contains the relevant changes.
from littleproxy.
No worries at all -- I actually added idle state handling to HttpServerPipelineFactory on master. Can you take a look to make sure it's what you imagined? I have a ticket open to make it more configurable too -- currently just hard-coded to 70 seconds with both reads and writes being idle.
from littleproxy.
I reviewed it when you first checked it in, and again after forking your code for the pull request. As far as I can tell, everything looks good.
Configurability would be nice but the defaults are very reasonable. I would say it would also make sense to have the timeouts configurable on proxy to web connections as well, and also add some validation that the threshold for those is never greater than browser to proxy connections, lest you end up in the same situation that caused this ticket to be created :)
from littleproxy.
Closing issue since the patch has been added :)
from littleproxy.
Related Issues (20)
- Trying to understand org.littleshoot.proxy.ChainedProxy.filterRequest(HttpObject) HOT 2
- Caught an exception on ClientToProxyConnection
- How to intercept connect method for HTTPS request?
- 如果想更换虚拟IP在哪里配置 HOT 3
- Question: Does sending empty message really work?
- Modify POST requests, but only for certain hosts
- get real ip
- LEAK: ByteBuf.release() was not called HOT 5
- LittleProxy leaves non-daemon thread if it fails to start because of a port already in use
- http response which ssl not-used is garbled.
- Get HTTP response body
- Memory leak in ClientToProxyConnection.doReadHTTPInitial();
- How to update request body with a longer content?
- Customized TrustManager bypasses certificate verification
- Any one maintain this project?
- Avoid using plaintext Keystore password in source code HOT 2
- Eltoni HOT 1
- Can't read content of Request
- Authentication information in proxy chain HOT 2
- Check 'LittleProxy/LittleProxy' for an updated fork
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from littleproxy.