IP_TOS setting wrong
"Gregory P. Smith" <[email protected]>
| Newsgroups | gmane.network.bit-torrent.general |
|---|---|
| Message-ID | <[email protected]> |
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.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/BitTorrent/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/