From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: cc@ivu-ac.de, emacs-devel@gnu.org
Subject: Re: [cc@ivu-ac.de: Re: Problem sending bigger mails with CVS Gnus + CVS Emacs]
Date: Tue, 21 May 2002 18:41:52 -0700 (PDT) [thread overview]
Message-ID: <20020521.184152.96769446.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <20020521.154041.31848902.Takaaki.Ota@am.sony.com>
Jason,
I've modified sys_write in the same manner that _sys_read_ahead
performs blocking IO then the problem disappeared. Is this a right
fix? The sys_write comment explicitly states that;
/* For now, don't bother with a non-blocking mode */
-Tak
*** emacs-21.2.50/src/w32.c Sat May 4 07:53:43 2002
--- w32.c Tue May 21 18:26:34 2002
***************
*** 2568,2573 ****
--- 2568,2574 ----
case WSAEMFILE: h_errno = EMFILE; break;
case WSAENAMETOOLONG: h_errno = ENAMETOOLONG; break;
case WSAENOTEMPTY: h_errno = ENOTEMPTY; break;
+ case WSAEWOULDBLOCK: h_errno = EAGAIN; break;
}
errno = h_errno;
}
***************
*** 3541,3548 ****
--- 3542,3561 ----
#ifdef HAVE_SOCKETS
if (fd_info[fd].flags & FILE_SOCKET)
{
+ unsigned long nblock = 0;
if (winsock_lib == NULL) abort ();
+
+ /* We always want this to block, so temporarily disable NDELAY. */
+ if (fd_info[fd].flags & FILE_NDELAY)
+ pfn_ioctlsocket (SOCK_HANDLE (fd), FIONBIO, &nblock);
+
nchars = pfn_send (SOCK_HANDLE (fd), buffer, count, 0);
+
+ if (fd_info[fd].flags & FILE_NDELAY)
+ {
+ nblock = 1;
+ pfn_ioctlsocket (SOCK_HANDLE (fd), FIONBIO, &nblock);
+ }
if (nchars == SOCKET_ERROR)
{
DebPrint(("sys_read.send failed with error %d on socket %ld\n",
next prev parent reply other threads:[~2002-05-22 1:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-18 18:49 [cc@ivu-ac.de: Re: Problem sending bigger mails with CVS Gnus + CVS Emacs] Richard Stallman
2002-05-19 0:07 ` Simon Josefsson
2002-05-19 19:40 ` Richard Stallman
2002-05-20 9:35 ` Alex Schroeder
2002-05-21 15:58 ` Richard Stallman
2002-05-24 0:45 ` Alex Schroeder
2002-05-24 21:14 ` Richard Stallman
2002-05-20 10:58 ` Simon Josefsson
2002-05-20 21:33 ` Richard Stallman
2002-05-21 10:02 ` Christoph Conrad
2002-05-19 10:23 ` Jason Rumney
2002-05-20 14:47 ` Richard Stallman
2002-05-20 21:47 ` Jason Rumney
2002-05-20 23:36 ` Tak Ota
2002-05-21 20:32 ` Jason Rumney
2002-05-21 22:40 ` Tak Ota
2002-05-22 1:41 ` Tak Ota [this message]
2002-05-22 16:03 ` Tak Ota
2002-05-21 9:53 ` Christoph Conrad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020521.184152.96769446.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--cc=cc@ivu-ac.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).