socket_tos_default needs to be called for every socket, not just the listening socket, 
therefore
it must be present somewhere inside socket_accept.  It usess s->type to determin the 
socket type,
so it must be called after upload_add, but still within socket_accept.

--- sockets.c~  Wed Mar 26 15:13:21 2003
+++ sockets.c   Mon Mar 31 23:31:01 2003
@@ -489,6 +489,8 @@
     else
                goto unknown;
  
+       socket_tos_default(s);
+
        return;
  
 unknown:
@@ -1132,8 +1134,6 @@
        s->gdk_tag =
                inputevt_add(sd, INPUT_EVENT_READ | INPUT_EVENT_EXCEPTION,
                                          socket_accept, s);
-
-       socket_tos_default(s);
  
        return s;
 }


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to