[BitTorrent] IP_TOS setting wrong

Gregory P. Smith gpsmith at gmail.com
Sun Dec 5 20:42:06 EST 2004

In RawServer.py it looks like someone attempted to set the IP_TOS
bits.  However it is set very oddly:

in the bind() method:

server.setsockopt(socket.IPPROTO_IP, socket.IP_TOS, 32)

What does 32 mean?  

Its diffserv "IPTOS_PREC_PRIORITY 0x20"

A more appropriate value would be "IPTOS_THROUGHPUT 0x08"

Also, it needs to be set on outgoing connections for it to matter. 
Not just the server socket.

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list