[Python-checkins] python/dist/src/Modules socketmodule.c,1.251,1.252

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2003年1月31日 10:16:14 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv7196
Modified Files:
	socketmodule.c 
Log Message:
SF patch #678257 by Geoff Talvola.
In sendall(), do an internal select before each send() call, instead
of only for the first one.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.251
retrieving revision 1.252
diff -C2 -d -r1.251 -r1.252
*** socketmodule.c	6 Jan 2003 12:41:26 -0000	1.251
--- socketmodule.c	31 Jan 2003 18:15:58 -0000	1.252
***************
*** 1849,1854 ****
 
 	Py_BEGIN_ALLOW_THREADS
- 	internal_select(s, 1);
 	do {
 		n = send(s->sock_fd, buf, len, flags);
 		if (n < 0)
--- 1849,1854 ----
 
 	Py_BEGIN_ALLOW_THREADS
 	do {
+ 		internal_select(s, 1);
 		n = send(s->sock_fd, buf, len, flags);
 		if (n < 0)

AltStyle によって変換されたページ (->オリジナル) /