Comments (7)
Are you creating a new instance of HttpToSocks5Proxy for every request?
from httptosocks5proxy.
Yes.
just like traditional WebProxy every time i created new one. is it wrong?
from httptosocks5proxy.
The HttpToSocks5Proxy instance is meant to be reused, or explicitly shut down by calling StopInternalServer. If you create a new one for each request you are essentially starting a new server that never stops, eventually running out of ports.
I will update the usage examples to make this clear.
from httptosocks5proxy.
thank you dear @MihaZupan for your great work.
so if i create a single HttpToSocks5Proxy instance(for example make it static) and use it all over my application, problem solves? I have more than 1000 proxies in my application.
from httptosocks5proxy.
If you are using the same proxy server for all requests, making it static is a good choice. If you are using different proxy servers then you should create a HttpToSocks5Proxy instance for each proxy server.
from httptosocks5proxy.
yes exactly. i will create static list of proxies. then reuse all over the code.
from httptosocks5proxy.
Great!
If you are making very few requests (i.e. less than 10/h per proxy), you can also create a new instance every time and call StopInternalServer.
from httptosocks5proxy.
Related Issues (16)
- Target port in `CONNECT` method should be figured out from `request-target` (not `Host` header) HOT 5
- My English is poor. Is it Socks5 to HTTP or HTTP to Socks5? HOT 1
- Does anybody have the same problem? "Could not create SSL/TLS secure channel" HOT 1
- Reopen internal server (after closing it) HOT 2
- Change Credentials Without Creating New Proxy Instance? HOT 2
- How to make a random proxy in every request HOT 1
- asp.net & HttpParser HOT 1
- Adding headers doesn't work HOT 6
- Ports exhaustion HOT 13
- Losing query part of URI HOT 2
- Unhandled Exception HOT 3
- OnAcceptCallback throw unhandled exception HOT 2
- System.Net.Sockets.SocketException: 'A blocking operation was interrupted by a call to WSACancelBlockingCall HOT 5
- Infinite? Loop possible with "improved" relaying logic HOT 4
- Cpu high HOT 2
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 httptosocks5proxy.