httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Maruzzelli <mar...@matrice.it>
Subject Re: [BUG] 1.3 not closing socket on NT
Date Fri, 05 Sep 1997 03:32:54 GMT
On Tue, 2 Sep 1997, Philip A. Prindeville wrote:

> 	Date: Tue, 2 Sep 1997 20:45:17 +0200 (MET DST)
> 	From: Giovanni Maruzzelli <maruzz@matrice.it>
> 	To: new-httpd@apache.org
> 	Subject: Re: [BUG] 1.3 not closing socket on NT
> 
> 	On Tue, 2 Sep 1997, Giovanni Maruzzelli wrote:
> 
> 	>         	{
> 	> #        	print;
> 	>         	}
> 	> 	shutdown(S, 1);
> 	> 
> 	> 	close(S);
> 	> 	}
> 	> exit 0;
> 
> 
> 	And if you comment out the shutdown line, the problem reappears...
> 
> Ah....  Then my guess would be that the FIN packet is being sent
> with a sequence number off by 1 (4.2 BSD had this problem too,
> but on all closes).
> 
> You have no way to get a trace with tcpdump or Network Monitor? 
> 
> -Philip
> 

I've made some tracing with tcpdump -vv.

They seems to show that the problem is originated by the fact that windoz
clients (netscape 3 on win95) reset the socket after acknoledging a FIN,
versus Unix clients (Lynx 2.6) that after acknoledging a FIN send another
FIN..



Here's the traces (I post an entire session for each case):

======== BEGIN NT SERVER WITH LINUX CLIENT =============
04:18:04.254527 demo2.matrice.it.1403 > struso.matrice.it.http: S 839566126:839566126(0)
win 512 <mss 1460> (ttl 64, id 40356)

04:18:04.254527 struso.matrice.it.http > demo2.matrice.it.1403: S 32454106:32454106(0)
ack 839566127 win 8760 <mss 1460> (DF) (ttl 128, id 16398)

04:18:04.254527 demo2.matrice.it.1403 > struso.matrice.it.http: . ack 1 win 31744 (ttl
64, id 40357)

04:18:04.264527 demo2.matrice.it.1403 > struso.matrice.it.http: P 1:673(672) ack 1 win
31744 (DF) (ttl 64, id 40358)

04:18:04.304527 struso.matrice.it.http > demo2.matrice.it.1403: . 1:1461(1460) ack 673
win 8088 (DF) (ttl 128, id 17934)

04:18:04.304527 struso.matrice.it.http > demo2.matrice.it.1403: P 1461:1558(97) ack 673
win 8088 (DF) (ttl 128, id 18190)

04:18:04.304527 struso.matrice.it.http > demo2.matrice.it.1403: F 1558:1558(0) ack 673
win 8088 (DF) (ttl 128, id 18446)

04:18:04.304527 demo2.matrice.it.1403 > struso.matrice.it.http: . ack 1559 win 30720 (ttl
64, id 40364)

04:18:04.394527 demo2.matrice.it.1403 > struso.matrice.it.http: F 673:673(0) ack 1559 win
31744 (ttl 64, id 40365)

04:18:04.394527 struso.matrice.it.http > demo2.matrice.it.1403: . ack 674 win 8088 (DF)
(ttl 128, id 18702)

================ END NT SERVER WITH LINUX CLIENT ==============================

================ BEGIN NT SERVER WITH WIN CLIENT =============================
04:19:02.194527 demo1.matrice.it.1161 > struso.matrice.it.http: S 43397675:43397675(0)
win 8192 <mss 1460> (DF) (ttl 32, id 16901)

04:19:02.194527 struso.matrice.it.http > demo1.matrice.it.1161: S 32512060:32512060(0)
ack 43397676 win 8760 <mss 1460> (DF) (ttl 128, id 40206)

04:19:02.194527 demo1.matrice.it.1161 > struso.matrice.it.http: . ack 1 win 8760 (DF) (ttl
32, id 17157)

04:19:02.194527 demo1.matrice.it.1161 > struso.matrice.it.http: P 1:228(227) ack 1 win
8760 (DF) (ttl 32, id 17413)

04:19:02.244527 struso.matrice.it.http > demo1.matrice.it.1161: . 1:1461(1460) ack 228
win 8533 (DF) (ttl 128, id 41742)

04:19:02.244527 struso.matrice.it.http > demo1.matrice.it.1161: P 1461:1558(97) ack 228
win 8533 (DF) (ttl 128, id 41998)

04:19:02.244527 struso.matrice.it.http > demo1.matrice.it.1161: F 1558:1558(0) ack 228
win 8533 (DF) (ttl 128, id 42254)

04:19:02.244527 demo1.matrice.it.1161 > struso.matrice.it.http: . ack 1559 win 8760 (DF)
(ttl 32, id 17669)

04:19:02.264527 demo1.matrice.it.1161 > struso.matrice.it.http: R 43397903:43397903(0)
win 0 (DF) (ttl 32, id 17925)

================ END NT SERVER WITH WIN CLIENT =============================

========== BEGIN LINUX SERVER WITH WIN CLIENT =================

04:42:38.234527 demo1.matrice.it.1169 > demo2.matrice.it.http: S 44813933:44813933(0) win
8192 <mss 1460> (DF) (ttl 32, id 28421)

04:42:38.234527 demo2.matrice.it.http > demo1.matrice.it.1169: S 2185981597:2185981597(0)
ack 44813934 win 31744 <mss 1460> (ttl 64, id 41973)

04:42:38.244527 demo1.matrice.it.1169 > demo2.matrice.it.http: . ack 1 win 8760 (DF) (ttl
32, id 28677)

04:42:38.244527 demo1.matrice.it.1169 > demo2.matrice.it.http: P 1:173(172) ack 1 win 8760
(DF) (ttl 32, id 28933)

04:42:38.264527 demo2.matrice.it.http > demo1.matrice.it.1169: . ack 173 win 31744 (ttl
64, id 41974)

04:42:38.264527 demo2.matrice.it.http > demo1.matrice.it.1169: P 1:1412(1411) ack 173 win
31744 (DF) (ttl 64, id 41975)

04:42:38.264527 demo2.matrice.it.http > demo1.matrice.it.1169: F 1412:1412(0) ack 173 win
31744 (ttl 64, id 41976)

04:42:38.264527 demo1.matrice.it.1169 > demo2.matrice.it.http: . ack 1413 win 7349 (DF)
(ttl 32, id 29189)

04:42:38.304527 demo1.matrice.it.1169 > demo2.matrice.it.http: R 44814106:44814106(0) win
0 (DF) (ttl 32, id 29445)

============== END LINUX SERVER WITH WIN CLIENT ======================

========== BEGIN LINUX SERVER WITH LINUX CLIENT =================

05:03:50.454527 struso.matrice.it.1031 > demo2.matrice.it.http: S 3919494031:3919494031(0)
win 512 <mss 1460> (ttl 64, id 116)

05:03:50.454527 demo2.matrice.it.http > struso.matrice.it.1031: S 4010744658:4010744658(0)
ack 3919494032 win 31744 <mss 1460> (ttl 64, id 42791)

05:03:50.454527 struso.matrice.it.1031 > demo2.matrice.it.http: . ack 1 win 15360 (ttl
64, id 117)

05:03:50.464527 struso.matrice.it.1031 > demo2.matrice.it.http: P 1:365(364) ack 1 win
15360 (DF) (ttl 64, id 118)

05:03:50.464527 demo2.matrice.it.http > struso.matrice.it.1031: P 1:1412(1411) ack 365
win 31744 (DF) (ttl 64, id 42792)

05:03:50.464527 demo2.matrice.it.http > struso.matrice.it.1031: F 1412:1412(0) ack 365
win 31744 (ttl 64, id 42793)

05:03:50.464527 struso.matrice.it.1031 > demo2.matrice.it.http: . ack 1413 win 15360 (ttl
64, id 119)

05:03:50.554527 struso.matrice.it.1031 > demo2.matrice.it.http: F 365:365(0) ack 1413 win
15360 (ttl 64, id 120)

05:03:50.554527 demo2.matrice.it.http > struso.matrice.it.1031: . ack 366 win 31744 (ttl
64, id 42794)

============== END LINUX SERVER WITH LINUX CLIENT ======================


Hope this can help.

ciao,

-giovanni

 
          ***********************************************
          *                                             *
          *                                             *
          *    MATRICE srl                              *
          *    Information Technology Solutions         *
          *                                             *
          *    Giovanni Maruzzelli                      *
          *                                             *
          *                                             *
          *    tel. (+39)(2)2952 0481                   *
          *    fax  (+39)(2)2952 0528                   *
          *    maruzz@matrice.it                        *
          *    http://www.matrice.it                    *
          ***********************************************


Mime
View raw message