[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More on NSL Fork (was: Re: LYNX-DEV Re: http://www.wfbr.edu/dir/lynx)
From: |
Nelson Henry Eric |
Subject: |
More on NSL Fork (was: Re: LYNX-DEV Re: http://www.wfbr.edu/dir/lynx) |
Date: |
Tue, 7 Jan 1997 10:02:51 +0900 (JST) |
> > 'z'ap without having to wait for completion or time out of the
[...]
> It seems to be working fine here on both UnixWare and UMAXV.
Am I the only one who is not getting the message (may be a real pun here :-)
intended when the NS lookup is interrupted by pressing `Z' or `^G'?
In HTTCP.c there is the section:
* abort if interrupt key pressed
*/
if (HTCheckForInterrupt()) {
if (TRACE)
fprintf (stderr, "*** INTERRUPTED gethostbyname.\n");
kill(fpid , SIGKILL);
FREE(host);
return HT_INTERRUPTED;
From this, I would expect to get the message, `Connection interrupted.' or
something to that effect, but I am getting `Unable to connect to remote host.',
which is the same message I would get if I let the lookup timeout.
Or am I looking in the wrong place in HTTP.c (HTFTP.c, etc):
status = HTDoConnect (arg, "HTTP", HTTP_PORT, &s);
if (status == HT_INTERRUPTED)
{
/* Interrupt cleanly. */
if (TRACE)
fprintf (stderr,
"HTTP: Interrupted on connect; recovering cleanly.\n");
_HTProgress ("Connection interrupted.");
status = HT_NOT_LOADED;
goto done;
}
if (status < 0)
{
if (TRACE)
fprintf(stderr,
"HTTP: Unable to connect to remote host for `%s' (errno = %d).\n",
url, SOCKET_ERRNO);
HTAlert("Unable to connect to remote host.");
status = HT_NOT_LOADED;
goto done;
If it's only me, I'll plug away at a hack. (I'd rather have _statusline
(CANCELLING), as in LYDownload.c, anyway.)
__Henry
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- More on NSL Fork (was: Re: LYNX-DEV Re: http://www.wfbr.edu/dir/lynx),
Nelson Henry Eric <=