added SSL backend for IOMultiplexer
[TransparentIRC.git] / src / IOEngine.h
index 0f33e81954cb13a83367beb329198a7b4375b97b..8f4053b4823126e661c5b52d45eab8b4134a82aa 100644 (file)
@@ -46,7 +46,7 @@ struct IOEngine {
     void (*cleanup)(void);
 };
 
-#define iohandler_wants_writes(IOFD) (IOFD->writebuf.bufpos || IOFD->state == IO_CONNECTING
+#define iohandler_wants_writes(IOFD) ((IOFD->writebuf.bufpos && !IOFD->ssl_hs_read) || IOFD->state == IO_CONNECTING || IOFD->ssl_hs_write
 
 void iohandler_log(enum IOLogType type, char *text, ...);
 void iohandler_events(struct IODescriptor *iofd, int readable, int writeable);