hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <daniel.stu...@attensity.com>
Subject AW: AW: Problems with stale connection check and expect 100-continue
Date Tue, 24 May 2011 16:44:58 GMT
Hi Oleg,

I used Wireshark to get some additional information. This is the 100-continue request and
the response from the socket/OS.

160	1.629973	127.0.1.1	127.0.1.1	TCP	47837 > 8030 [PSH, ACK] Seq=132 Ack=94 Win=273 Len=224
TSV=2404596 TSER=2404594

0000   00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00  ..............E.
0010   01 14 f9 aa 40 00 40 06 40 37 7f 00 01 01 7f 00  ....@.@.@7......
0020   01 01 ba dd 1f 5e db e0 45 90 dc 88 33 67 80 18  .....^..E...3g..
0030   01 11 01 09 00 00 01 01 08 0a 00 24 b0 f4 00 24  ...........$...$
0040   b0 f2 50 55 54 20 2f 72 65 70 6c 69 63 61 74 65  ..PUT /replicate
0050   64 73 74 6f 72 65 2f 6f 62 6a 31 3f 74 6f 6b 65  dstore/obj1?toke
0060   6e 3d 39 34 65 62 64 33 62 33 2d 32 61 36 66 2d  n=94ebd3b3-2a6f-
0070   34 34 34 31 2d 39 65 38 39 2d 36 63 66 66 33 39  4441-9e89-6cff39
0080   66 34 32 64 37 31 20 48 54 54 50 2f 31 2e 31 0d  f42d71 HTTP/1.1.
0090   0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69  .Transfer-Encodi
00a0   6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 48 6f 73  ng: chunked..Hos
00b0   74 3a 20 70 63 2d 30 32 31 2d 6c 6e 78 3a 38 30  t: pc-021-lnx:80
00c0   33 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20  30..Connection: 
00d0   4b 65 65 70 2d 41 6c 69 76 65 0d 0a 55 73 65 72  Keep-Alive..User
00e0   2d 41 67 65 6e 74 3a 20 41 70 61 63 68 65 2d 48  -Agent: Apache-H
00f0   74 74 70 43 6c 69 65 6e 74 2f 34 2e 31 20 28 6a  ttpClient/4.1 (j
0100   61 76 61 20 31 2e 35 29 0d 0a 45 78 70 65 63 74  ava 1.5)..Expect
0110   3a 20 31 30 30 2d 63 6f 6e 74 69 6e 75 65 0d 0a  : 100-continue..
0120   0d 0a                                            ..



161	1.630008	127.0.1.1	127.0.1.1	TCP	8030 > 47837 [RST] Seq=94 Win=0 Len=0
Expert Info (Chat/Sequence): Connection reset (RST)
0000   00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00  ..............E.
0010   00 28 00 00 40 00 40 06 3a ce 7f 00 01 01 7f 00  .(..@.@.:.......
0020   01 01 1f 5e ba dd dc 88 33 67 00 00 00 00 50 04  ...^....3g....P.
0030   00 00 c5 b2 00 00    


It seems that the connection is reset but this is not recognized by HttpClient when doing
100-continue.

Bye,
Daniel

-----Urspr√ľngliche Nachricht-----
Von: Oleg Kalnichevski [mailto:olegk@apache.org] 
Gesendet: Dienstag, 24. Mai 2011 13:16
An: HttpClient User Discussion
Betreff: Re: AW: Problems with stale connection check and expect 100-continue

On Tue, 2011-05-24 at 12:25 +0200, daniel.stucky@attensity.com wrote:
> Hi,
> 
> as this test is part of a larger test set I just found out that if I execute it separately
everything works fine. So it seems to be a subsequent fault or it just depends on some prior
usage of the connections.
> 
> I attached a wire.log of the full test so that you can see what happens before my actual
problem.
> 
> Thanks,
> Daniel

Daniel

I am sorry but I see nothing wrong in HttpClient's behavior. My guess is
that something goes sideways on the server side. The server likely
failed to handle the problem gracefully and left the connection in a
half-closed state. This is the reason why the request does not fail
while waiting for 100-Continue response.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

Mime
View raw message