Opened 15 years ago

Last modified 7 years ago

#160 closed defect (Works for me)

"GETINFO network-status" seems to fail

Reported by: rm Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: rm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When I send a GETINFO control message with the parameter "network-status", the server seems to close the control connection. The timing appears to be inconsistent, sometimes the reply message can be read fully, after which the socket is closed, sometimes only 8636 bytes can be read. (The number may be coincidental, but was constant in my tests.) Found in on win32.

agl ran the demo python script on and received the following output:

[12:41] <agl> {'version': ''}
[12:41] <agl> Traceback (most recent call last):
[12:41] <agl> File "", line 457, in ?
[12:41] <agl> do_main_loop(sh,sp)
[12:41] <agl> File "", line 425, in do_main_loop
[12:41] <agl> print get_info(s,"network-status")
[12:41] <agl> File "", line 305, in get_info
[12:41] <agl> tp,body = receive_reply(s,[MSG_TYPE.INFOVALUE])
[12:41] <agl> File "", line 247, in receive_reply
[12:41] <agl> raise ErrorReply((errCode,
[12:41] <agl> main.ErrorReply: (1, 'Internal error', 'network-status')

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (5)

comment:1 Changed 15 years ago by rm

*EDIT* I was mistaken about the timing. The socket is *always* closed after the complete reply was sent by the server.

comment:2 Changed 15 years ago by rm

It seems this happens with "desc/name/<...>" messages as well. The complete descriptor is sent, and after that the socket closes. (Not cross-verified with the python script yet.)

"addr-mappings/all" and "version" do not show this effect.

comment:3 Changed 15 years ago by rm

I have to retract this report - the socket closing was due to a subtle error in my client code.

The python script failing in the same place is probably due to changes made in the alpha version. Strange coincidence...

Apologies for the wrong entry.

comment:4 Changed 15 years ago by nickm

flyspray2trac: bug closed.
This works for me; closing. Glad you found it too.

comment:5 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.