New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plug-ins fail with FG_ERR_SOCKSCONN #68
Comments
|
This may be a problem in Tor, as the P2P plug-in and the filetransfer plug-in may be experiencing something similar. See here for the Tor ticket: |
|
It's currently failing at least half the time. But I think this may have something to do with the fact that the browser plug-in doesn't really use the filegetter service interface. That interface retries a connection that failed with |
|
That merge doesn't really solve the underlying problems, but handles it more gracefully. Since I suspect there is a problem somewhere in Tor of elsewhere, I'm closing this issue for now. |
|
I believe the biggest source of these errors was fixed in e2d30c9. Please report if you are still seeing high error rates after the patch. |
|
It still fails with that error in 50% of all cases. |
I'll have to look through some log files to understand what is causing the problem. |
|
@robgjansen It doesn't fail when not using Scallion. But I haven't used SOCKS connections in that case. Can I do that without scallion? I test the browser plug-in with scallion by creating a directory like <plugin id="scallion" path="libshadow-plugin-scallion.so" />
<plugin id="filex" path="libshadow-plugin-filetransfer.so" />
<plugin id="browser" path="libshadow-plugin-browser.so" />
<cluster id="browser" bandwidthdown="6000" bandwidthup="1000" />
<cluster id="server" bandwidthdown="100000" bandwidthup="100000" />
<link id="link-browser-browser" clusters="browser browser" latency="30" jitter="11" packetloss="0.0">
<link id="link-server-browser" clusters="server browser" latency="50" jitter="11" packetloss="0.0" />
<link id="link-browser-server" clusters="browser server" latency="50" jitter="11" packetloss="0.0" />
<software id="authority" plugin="scallion" time="1" arguments="dirauth 102400 1024000 1024000 ./authority.torrc ./data/authoritydata ~/.shadow/share/geoip" />
<node id="4uthority" software="authority" cluster="browser" bandwidthup="102400" bandwidthdown="102400" cpufrequency="2800000" quantity="1" />
<software id="exit" plugin="scallion" time="300" arguments="exitrelay 1024 102400 102400 ./exit.torrc ./data/exitdata ~/.shadow/share/geoip" />
<node id="exit.tor" cluster="browser" software="exit" cpufrequency="2800000" quantity="1" />
<software id="relay" plugin="scallion" time="300" arguments="relay 1024 102400 102400 ./relay.torrc ./data/relaydata ~/.shadow/share/geoip" />
<node id="relay.tor" cluster="browser" software="relay" cpufrequency="2800000" quantity="2" />
<!-- Servers -->
<software id="server" plugin="filex" time="1" arguments="server 80 ../browser-example/" />
<node id="server.node" software="server" cluster="server" bandwidthdown="60000" bandwidthup="30000" cpufrequency="2800000" />
<!-- Browser -->
<software id="client" plugin="scallion" time="3000" arguments="browser 1024 102400 102400 ./client.torrc ./data/clientdata ~/.shadow/share/geoip server.node 80 localhost 9000 6 /index.htm" />
<node id="client.tor" cluster="browser" software="client" cpufrequency="2800000" logpcap="true" quantity="1" />
<kill time="10000" />Then I execute the it from that directory through |
Not currently, because we don't have another SOCKS proxy plug-in implemented.
Thanks! I'll check it out. |
|
The following prints to And I found the following in Your browser_activate() is calling filegetter_activate() while filegetter is in the FG_REQUEST_HTTP state. Then the following is getting called with So, the browser sent a request for the file @caffeineshock Any idea why your remote path is |
|
@robgjansen That's a weird error. Does this happen all the time with the XML above? I'm currently working a lot with the same configuration to try out my changes to Tor and I've never got that. It seems to happen after the first document was downloaded. You could try turning on debug messages. Then the paths of embedded object are printed after parsing with libtidy. The output of |
|
That gives me: |
|
You must run that from the shadow base directory, because the server serves (I wish the built-in example didn't need any paths, i.e., read static webpages and objects that are defined in the code rather than reading a file.)
Yep. It looks like this: <html>
<head>
<link rel="stylesheet" media="screen" href="example_1.css" />
<link rel="stylesheet" media="screen" href="//server.node/example_2.css" />
<style type="text/css">
/* Is ignored */
@import url("example_3.css");
</style>
<script type="text/javascript" src="/example.js"></script>
</head>
<body>
<img src="http://server.node/example.gif" />
</body>
</html>
|
|
I'm very clueless as to what is causing this ... As far as I remember you tested |
|
The errors: are because the function |
It now works with all client plug-ins, and follows the example on the scallion plug-in wiki page. Clients now start after a consensus is ready. refs #68
Added CentOS 8 Docker support to the CI tests
Currently using this plug-in seems to fail with FG_ERR_SOCKSCONN.
The text was updated successfully, but these errors were encountered: