Alo Sarv
lead developer

Donate via

Latest Builds

version 0.3
tar.gz tar.bz2
Boost 1.33.1 Headers
MLDonkey Downloads Import Module Development
Payment completed
Development in progress.
Developer's Diary

Friday, November 04, 2005

Usual bugfixing/maintainance

Speaking of consequences, seems the server change had bigger consequences than originally planned. SVN is still down (on the bright side - it was up for four hours yesterday!) and mail still doesn't work (so if you'v mailed me during last few days, I haven't received it).

Since SVN access is down, here are new builds for Windows, Linux, as well as source code snapshot.

Most it's been bugfixing after the optimization cycle, things seem to be back under control (except for an issue with upload slots - too many of them). I also did some cleanup in hnbase module, networking subsystem - removed lazy disconnection functionality (it allowed marking a socket for disconnection after all pending data has been sent out), and removed connect by hostname functionality (allowed doing socket->connect("", 8) -like calls). The reasoning for the removal of those two is simple - they are error-prone, their usability questionable, and near-impossible for the API to do the right thing under all usage scenarios.

For the lazy disconnections, what if data is received when the socket is marked for disconnection? The client code would want to handle the data most likely, but that would result in a disconnection at some random time. If you want a delayed disconnection, use socket timeouts instead - that's what they are for.

As for the DNS resolution integration within the networking API, it just can't do the right thing in case a name resolves to multiple IP addresses. What should the API do? Connect to the first found IP, but what if that fails? Connect to next one? What about timeouts? These decisions should not be made by an API transparently, these should be made by client code, which makes the integration pointless, and even harmful. There's a good and working API for dns resolution, use it - that's what it's for.

Madcat, ZzZz

r2197 has bug in statistics, missing EOF


--- clientlist.cpp.old 2005-11-04 06:46:48.000000000 +0100
+++ clientlist.cpp 2005-11-05 16:15:37.000000000 +0100
@@ -584,7 +584,7 @@
ofs << std::distance(uc.first, uc.second) << ":";
- ofs << std::distance(dc.first, dc.second);
+ ofs << std::distance(dc.first, dc.second) << std::endl;

// conditions for opening new slots
uint32_t curUpSpeed = SchedBase::instance().getUpSpeed();
Thank you, that help.
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?