/[cvs]/eggdrop1.8/src/net.c
ViewVC logotype

Diff of /eggdrop1.8/src/net.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8 by pseudo, Tue Nov 23 16:36:23 2010 UTC revision 1.9 by pseudo, Fri Nov 26 13:20:29 2010 UTC
# Line 1152  void dequeue_sockets() Line 1152  void dequeue_sockets()
1152    FD_ZERO(&wfds);    FD_ZERO(&wfds);
1153    tv.tv_sec = 0;    tv.tv_sec = 0;
1154    tv.tv_usec = 0;               /* we only want to see if it's ready for writing, no need to actually wait.. */    tv.tv_usec = 0;               /* we only want to see if it's ready for writing, no need to actually wait.. */
1155    for (i = 0; i < threaddata()->MAXSOCKS; i++) {    for (i = 0; i < threaddata()->MAXSOCKS; i++)
1156      if (!(socklist[i].flags & (SOCK_UNUSED | SOCK_TCL))) {      if (!(socklist[i].flags & (SOCK_UNUSED | SOCK_TCL)) &&
1157  #ifdef TLS          (socklist[i].handler.sock.outbuf != NULL)) {
       /* We can't rely on a transparent negotiation, because the  
        * handshake may never finish if we don't have any data to send.  
        */  
       if (socklist[i].ssl && !SSL_is_init_finished(socklist[i].ssl))  
         SSL_do_handshake(socklist[i].ssl);  
 #endif  
       if (socklist[i].handler.sock.outbuf != NULL) {  
1158          FD_SET(socklist[i].sock, &wfds);          FD_SET(socklist[i].sock, &wfds);
1159          z = 1;          z = 1;
1160        }        }
     }  
   }  
1161    if (!z)    if (!z)
1162      return;                     /* nothing to write */      return;                     /* nothing to write */
1163    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23