diff Modules/socketmodule.c @ 27558:8d83578dba81 legacy-trunk

SF patch #678257 by Geoff Talvola. In sendall(), do an internal select before each send() call, instead of only for the first one.
author Guido van Rossum <guido@python.org>
date Fri, 31 Jan 2003 18:15:58 +0000
parents 2443c557cbc3
children 81afca747caa
line wrap: on
line diff
--- a/Modules/socketmodule.c	Fri Jan 31 18:13:18 2003 +0000
+++ b/Modules/socketmodule.c	Fri Jan 31 18:15:58 2003 +0000
@@ -1848,8 +1848,8 @@
 		return NULL;
 
 	Py_BEGIN_ALLOW_THREADS
-	internal_select(s, 1);
 	do {
+		internal_select(s, 1);
 		n = send(s->sock_fd, buf, len, flags);
 		if (n < 0)
 			break;