]> jfr.im git - irc/quakenet/newserv.git/commitdiff
IRC: disable SO_RCVBUF tuning as it makes servers run Ubuntu link very slowly.
authorChris Porter <redacted>
Sat, 26 Jun 2010 05:11:09 +0000 (07:11 +0200)
committerChris Porter <redacted>
Sat, 26 Jun 2010 05:11:09 +0000 (07:11 +0200)
irc/irc.c

index 932d067e2721b831950ca895a417635594e36db8..4583cecfb7359e4bb6f578162d5dc69b3cddbe73 100644 (file)
--- a/irc/irc.c
+++ b/irc/irc.c
@@ -239,7 +239,7 @@ void irc_connect(void *arg) {
   sstring *mydesc;
   char *conto,*conpass;
   long portnum,pingfreq;
-  socklen_t opt=1460;
+/*  socklen_t opt=1460;*/
 
   nextline=inbuf;
   bytesleft=0;
@@ -270,10 +270,14 @@ void irc_connect(void *arg) {
   memcpy(&sockaddress.sin_addr, host->h_addr, sizeof(struct in_addr));
 #endif
   
+  /* slug: this makes some servers link really quite slowly
+   * (not that surprising I guess...)
+   *
   if (setsockopt(serverfd, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt))) {
     Error("irc",ERR_WARNING,"Error setting socket buffer.");
   }
-  
+  */
+
   Error("irc",ERR_INFO,"Connecting to %s:%lu",conto,portnum);
 
   if (connect(serverfd, (struct sockaddr *) &sockaddress, sizeof(struct sockaddr_in)) == -1) {