diff src/ChangeLog @ 71890:b0584c551b8c

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Fri, 14 Jul 2006 09:32:02 +0000
parents 5ccd38cf83f4
children 248ccc534803
line wrap: on
line diff
--- a/src/ChangeLog	Fri Jul 14 09:29:32 2006 +0000
+++ b/src/ChangeLog	Fri Jul 14 09:32:02 2006 +0000
@@ -1,3 +1,15 @@
+2006-07-14  Kim F. Storm  <storm@cua.dk>
+
+	* w32.c: Fix high cpu load for server sockets.
+	(pfn_WSAEventSelect): New function ptr.
+	(init_winsock): Load it.
+	(sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
+	char_avail event object to FD_ACCEPT.
+	(sys_accept): Check FILE_LISTEN flag.  Set event mask on new
+	socket's char_avail event object to FD_READ|FD_CLOSE.
+
+	* w32.h (FILE_LISTEN): New filedesc flag value.
+
 2006-07-13  Kim F. Storm  <storm@cua.dk>
 
 	* bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.