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" |
36 |
|
#include "memory.h" |
37 |
|
#include "hook.h" |
38 |
|
#include "send.h" |
40 |
– |
#include "irc_getnameinfo.h" |
39 |
|
|
40 |
|
#define READBUF_SIZE 16384 |
41 |
|
|
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 |
|
} |
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) |