Comments (5)
diskcache: don't check for leading '/' on WIN32, else serving files from the webserver never works.
Please see #7.
dns: don't even try to parse resolv.conf on WIN32
Makes sense.
io: REUSEADDR has completely different semantics on WIN32, don't use it; for better security use SO_EXCLUSIVEADDRUSE
As far as I can tell from the doc, REUSEADDR has the same semantics as under Unix. We use it in order to bind to sockets in the CLOSE_WAIT state. So I won't apply that, unless you can make sure that Windows doesn't have problems with CLOSE_WAIT on the server side.
util: try detaching from the console
Makes sense.
xnoreq, could you please generate discrete patches for the two changes that I'm accepting, and send them to me either through a github pull request or using "git send-email"?
--jch
from polipo.
dns: don't even try to parse resolv.conf on WIN32
Makes sense.
Doesn't Cygwin or msys include a resolv.conf file?
from polipo.
Doesn't Cygwin or msys include a resolv.conf file?
In cygwin polipo is not compiled with WIN32 defined. Cygwin is like an emulation layer. Opening "/etc/resolv.conf" will actually open C:\Cygwin\etc\resolv.conf if cygwin is installed directly on C:.
With mingw it is compiled with WIN32 set and there is no emulation, so it is compiled like a normal, native windows application. Opening a path like "/etc" will always fail.
from polipo.
As far as I can tell from the doc, REUSEADDR has the same semantics as under Unix. We use it in order to bind to sockets in the CLOSE_WAIT state. So I won't apply that, unless you can make sure that Windows doesn't have problems with CLOSE_WAIT on the server side.
It doesn't. From my tests on WIN32 you can always bind during CLOSE_WAIT state. Setting SO_REUSEADDR will allow other applications to bind to the same address even during LISTEN state. So without the patch you can start as many polipo.exe as you want - they will all bind successfully.
In my pull request I removed the SO_EXCLUSIVEADDRUSE because it might still be desirable for multiple polipo processes to run on the same port but on different interfaces.
from polipo.
Fixed by #25. THanks.
from polipo.
Related Issues (20)
- chunkHighMark ignored when it is a big number HOT 3
- polipo ignores specified port number HOT 1
- Error using curl --trace-ascii dump.txt www.google.com .
- Whether the file that holds the pid can be made compatible, for example, if it exists, it will not be created. HOT 2
- Https proxy not working HOT 1
- SOCKS protocol error HOT 4
- Can we set no_proxy url, just like a black list HOT 1
- Couldn't establish listening socket: Unknown error HOT 1
- HTTP violations
- failed start stop polipo web cache HOT 1
- Nothings persisted in cache folder HOT 1
- Please mark project as 'read-only'. HOT 2
- hostname error with format ::ffff:111.30.131.122
- Path had bad ownership/permissions HOT 2
- Dropping "CONNECT" request instead of 401 when auth is required
- Getting more done in GitHub with ZenHub
- How to change default Polipo listening TCP port 8123 from the config file? HOT 1
- Not proxy for given web sites
- Doubts in httpServerHandlerHeaders API HOT 1
- HOSTS file support. HOT 1
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 polipo.