WSASend behaving oddly

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Lee Gillie (ANTISPAMIFICATION_lee_at_odp.com)
Date: 04/26/04


Date: Mon, 26 Apr 2004 12:33:06 -0700

As part of a larger package, I have an FTP client, implmented in VS 6
C++. The software has been fairly stable and unchanged for the last 4
years. Within the last few months we have seen the following scenario
twice:

1. FTP Client initiates port 21 connection to server.
2. FTP Server responds with usual 220 "ready" response.
3. FTP Client sends "USER anonymous<cr>" with WSASend,
   and overlapped I/O setup for EVENT handling completion.
4. WSASend return status is SOCKET_ERROR
5. WSAGetLastError is WSA_IO_PENDING

This is all anticipated.

But in 60 seconds (WSAWaitForMultipleEvents), we never get the event
signalled with FD_WRITE on the socket from WSAGetOverlappedResult.
This has been 100% iron clad in the past. A log at the server shows
the WSASend traffic did make it to the server in a timely fashion.

For both cases the machines are extremely fast, I think both are
single processors. In one case the pipe is huge. In the other case
the pipe is a dialup. For both machines, the problem symptoms are
consistent over many attempts. In both cases, some other machine at
the site (using similar pipe) works fine. I probably have about 200+
machines out there using this client software successfully, everything
from UPGRADED W95 through W2003. One failing machine is W2000 SP3, and
the other is XP (not sure on SP).

The fact that we have not seen this in 4 years, and that both cases at
hand have happened so near, in time, each other, is interesting.

Any ideas would be GREATLY appreciated.

Best regards - Lee Gillie, Spokane WA



Relevant Pages

  • Attn. Microsoft - BUG REPORT!
    ... Methinks Microsoft's web server would meltdown if ... Bug 1: Windows XP Pro Updater hangs when updating from ... but WinXP FTP client hangs. ...
    (microsoft.public.windowsxp.general)
  • Re: Upload of large files hangs at CWD command
    ... Occasionally hangs on the FTP client (and we use several - IE, ... Microsoft Windows Server 2003, Standard Edition, SP1 ... > When a user uploads a large file to the server, they report it gets ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP from "My Network Places" to server?
    ... Microsoft MVP FrontPage ... "David Seguin" wrote in message ... The staging server has FP ... > FTP client to ftp from stg to prod. ...
    (microsoft.public.frontpage.client)
  • Spped of FreeWare FTP-Server under WinXP?
    ... I just tested the overall transfere speed of 2 FreeWare FTPds ... with ftp client Total Commander 6.54a) and 125 MB jpg pics ... which Server ist the fastest? ... TotalCommander - Cerberos: ...
    (microsoft.public.windows.server.networking)
  • Re: Barbaras (mini-)rant
    ... tweaking of the FTP client & Server ... newer FTP Server (written in C, PL/X and assembler). ...
    (bit.listserv.ibm-main)