ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/packet.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/src/packet.c (file contents), Revision 163 by adx, Thu Oct 20 21:09:02 2005 UTC vs.
ircd-hybrid-8/src/packet.c (file contents), Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC

# Line 22 | Line 22
22   *  $Id$
23   */
24   #include "stdinc.h"
25 < #include "tools.h"
25 > #include "list.h"
26   #include "s_bsd.h"
27   #include "s_conf.h"
28   #include "s_serv.h"
29   #include "client.h"
30   #include "common.h"
31   #include "ircd.h"
32 #include "list.h"
32   #include "parse.h"
33   #include "fdlist.h"
34   #include "packet.h"
# Line 37 | Line 36
36   #include "memory.h"
37   #include "hook.h"
38   #include "send.h"
40 #include "irc_getnameinfo.h"
39  
40   #define READBUF_SIZE 16384
41  
# Line 440 | Line 438 | read_packet(fde_t *fd, void *data)
438              errno = EWOULDBLOCK;
439            case SSL_ERROR_SYSCALL:
440              break;
441 +          case SSL_ERROR_SSL:
442 +            if (errno == EAGAIN)
443 +              break;
444            default:
445              length = errno = 0;
446          }
# Line 448 | Line 449 | read_packet(fde_t *fd, void *data)
449   #endif
450      {
451        length = recv(fd->fd, readBuf, READBUF_SIZE, 0);
451 #ifdef _WIN32
452      if (length < 0)
453        errno = WSAGetLastError();
454 #endif
452      }
453  
454      if (length <= 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)