[tor-bugs] #22798 [Core Tor/Tor]: Windows relay is several times slower than Linux relay

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jul 7 07:44:27 UTC 2017


#22798: Windows relay is several times slower than Linux relay
-------------------------------------------+-------------------------------
 Reporter:  Vort                           |          Owner:
     Type:  defect                         |         Status:  new
 Priority:  Medium                         |      Milestone:  Tor:
                                           |  unspecified
Component:  Core Tor/Tor                   |        Version:  Tor: 0.2.9.11
 Severity:  Normal                         |     Resolution:
 Keywords:  tor-relay performance windows  |  Actual Points:
Parent ID:                                 |         Points:  5
 Reviewer:                                 |        Sponsor:
-------------------------------------------+-------------------------------

Comment (by cypherpunks):

 > Maybe something is just preventing it from working correctly.

 Or maybe just a bug inside windows code.

 Look at filezilla code for something like (this is a copy/paste from some
 old code, something can be wrong):
 {{{
 static void update_tcp_send_buffer_size(SOCKET s)
 {
     ULONG v = 0;
     DWORD outlen = 0;

 #ifndef SIO_IDEAL_SEND_BACKLOG_QUERY
 #define SIO_IDEAL_SEND_BACKLOG_QUERY 0x4004747b
 #endif

     if (!p_WSAIoctl(s, SIO_IDEAL_SEND_BACKLOG_QUERY, 0, 0, &v, sizeof(v),
 &outlen, 0, 0)) {
         p_setsockopt(s, SOL_SOCKET, SO_SNDBUF, (const char*)&v,
 sizeof(v));
     }
 }
 }}}
 Test it with your BwTest.cpp​ (update buffer size once a second while
 compute speed)
 Actually 2 lines of code to test.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22798#comment:60>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list