startup.lua in scripting plugin breaks handshake with ADC hubs

Bug #1386172 reported by RoLex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DC++
New
Undecided
Unassigned

Bug Description

Default startup.lua script included with ScriptPlugin breaks the handshake with any ADC(S) hub. Function adch.DataArrival checks for empty protocol message and returns nil in that case. For some reason this breaks the client to hub handshake. To fix this, function needs to return 1 instead.

This bug was reproduces with DC++ 0.843 and ApexDC++ 1.6.0, both x64 builds running on Windows 7.

My initial thread on ApexDC++ forum: http://forums.apexdc.net/topic/4678-still-cant-connect-to-adcs-hubs/

Revision history for this message
RoLex (hundrambit) wrote :
Revision history for this message
poy (poy) wrote :

thanks for investigating... why does the script get called with an empty message, though? maybe it's not the script that needs fixing but its callers?

Revision history for this message
RoLex (hundrambit) wrote :

Function adch.DataArrival is a handler function that is called directly by the plugin in Plugin::onHubDataIn, you should know better.

Revision history for this message
poy (poy) wrote :

-_- why so aggressive?

my question was directed at the plugin author(s), because you may have uncovered a bigger issue.

Revision history for this message
RoLex (hundrambit) wrote :

What is aggressive in my explanation? Lol. I'm just trying to report a bug.

Those who wrote that plugin should know better about this issue, I however, found a temporary solution and proposed it to others.

Revision history for this message
poy (poy) wrote :

ok, you didn't mean it that way but "should know better" is offensive in this context; it implies that it's foolish of authors not to have foreseen the issue. you wanted "would know more" / "would have more clue".

the patch is fine; i'll put it in soon unless another solution is found (on the caller side).

Revision history for this message
poy (poy) wrote :

hey,

i just tried the script plugin with default installs of DC++ & ADCH++ and i could connect fine (both locally and remotely to the DCDev hub).

[on Linux though.]

could anyone confirm? are there settings / other plugins that may be needed to reproduce?

Revision history for this message
RoLex (hundrambit) wrote :

Did you test it on Windows?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.