writing a SIGIO program (as i did, before sending the query about it to
Stephen) shows it easily --
- you open an outbound connection via connect(), you're waiting for
POLL_OUT to appear, it never does.
instead, this POLL_IN appears. you try to do a read, and, of course,
get an -EAGAIN -- there's nothing there to be read.
this one-line-fix and it all works as planned.
cheers,
lincoln.
At 23:17 26/11/99 +0000, Stephen C. Tweedie wrote:
>Hi,
>
>The reason code below does look wrong to me --- would anyone who
>actually knows this code well care to verify the fix?
>
>--Stephen
>
>----------------------------------------------------------------
>--- net/ipv4/tcp_input.c~ Fri Nov 12 12:55:38 1999
>+++ net/ipv4/tcp_input.c Fri Nov 26 23:12:12 1999
>@@ -2760,7 +2760,7 @@
>
> if(!sk->dead) {
> wake_up_interruptible(sk->sleep);
>- sock_wake_async(sk->socket, 0, POLL_IN);
>+ sock_wake_async(sk->socket, 0, POLL_OUT);
> }
> return -1;
> }
--
Lincoln Dale Content Switching
[EMAIL PROTECTED] Cisco Systems Inc. | |
|| ||
+1 (408) 525-1274 bldg M, 170 West Tasman |||| ||||
+61 (3) 9269-4200 << San Jose CA 95134 ..:||||||:..:||||||:..
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]