*bump*
I have a bit more information, too. When ed2k is working, the ed2k server shows significant activity in both inbound and outbound packets once it's been connected a while. When it's not, I see this:
Only 3 packets have been sent from it, and in fact those 3 are sent right away. It looks like when ed2k isn't working, the server handshakes with Shareaza and after that Shareaza sees no more traffic from that. Shareaza is
sending the server traffic, though, so the problem isn't that it fails to even query it.
This means that either the server is simply ignoring all incoming traffic from that client, in which case we need to find out what causes Shareaza to
sometimes provoke this cold shoulder, or, more likely, Shareaza is failing to recognize incoming traffic from the ed2k server.
I say more likely, because under any circumstances where the server would want to ignore a client, it would want to disconnect that client and probably ban it from reconnecting at least for a while, and those latter steps are clearly not happening.
If ed2k had simply stopped functioning, with these symptoms, and stayed that way, my suspicion would be that Shareaza had fallen behind some evolution of the ed2k protocol, and servers had switched to sending responses that Shareaza could not interpret correctly. In that case Shareaza would need to be updated to recognize the newer version of the protocol.
However, it comes and goes like a distant radio station. I doubt they're switching
the same ed2k server back and forth between an older and a newer protocol version -- why would they not either stick with the newer version, or try it once, then revert to the older and stick with that? -- so I have to suspect a bug instead. If the bug was in the ed2k servers, thus affecting every ed2k user, it would make the servers completely useless and so it would be fixed in a hurry, but it's been occurring on and off for years. Therefore, the bug is at my end.
As for the nature of the bug, I couldn't venture a guess at this point. I can say if it's in Shareaza, it's isolated to the ed2k-specific parts of Shareaza, as nothing else (DC++, torrents, G1, G2) behaves any differently when ed2k is "down" than when it's "up". I can also say that the state of ed2k-working-or-not can toggle in mid-session and not solely when Shareaza is restarted, though it may need the ed2k server disconnected and reconnected. It toggles independently of any updates to, or user-initiated configuration changes to, antivirus software, firewall settings, and things of that nature, as well, and it's not ISP throttling since both states have been observed with the same ISP (and ISP throttling would either slow it down without breaking it completely, or else break it
so completely that ed2k would fail to connect or fail to stay connected, not stay connected but not otherwise work).
Now, does anybody here know anything about this? I assume ed2k works for most users most of the time or its inclusion in Shareaza wouldn't have been bothered with. There must therefore be something specific in my configuration that's impairing it, maybe combined with bugs in Shareaza's implementation of the protocol. Whatever configuration settings I have now result in ed2k workingness randomly toggling on and off every few days, though sometimes it stays off for weeks or even months. I'd like to know what configuration settings will result in it staying working.
To that end, I ask that someone who is experiencing consistent ability to connect and search ed2k without the "only 3 packets and no search results" symptoms please post here their Shareaza "Advanced Settings" settings that are
not their default values (show a * in the settings list), so that I can duplicate their settings and get ed2k working consistently over here too.
I also ask that Shareaza's developers look into what would cause some choices of settings to result in
intermittent rather than steady abnormal behavior of this sort. That the behavior of ed2k can randomly toggle between two states instead of being consistently one or the other for a fixed set of settings seems to me to indicate a bug is present. It doesn't seem like the sort of thing that should be nondeterministic like that. Threading issues, use of uninitialized memory, and so on are the sorts of bugs you should probably be looking for, given that.