[openssl-users] Response from server is lost on close

Anty Rao ant.rao at gmail.com
Wed Dec 2 08:49:26 UTC 2015


Hi : ALL
Using non-blocking openssl , after detecting underlying TCP is broken, i
invoke SSL_read to attempting reading response. *sometimes* response from
server is lost, sometimes not. But tcpdump show that response is always
send back to me. what is special is that RST packages come next the
response. Can someone shed some light on me, Thanks.Here is the result of
tcpdump:

> 22:29:52.284797 IP 17.143.162.202.2195 > xx.xx.xx.xx.49038: Flags [FP.], seq 4801:4838, ack 4158, win 340, option
> s [nop,nop,TS val 1184022887 ecr 2339879379], length 37
>         0x0000:  4500 0059 dcdb 4000 2e06 021a 118f a2ca  E..Y.. at .........
>         0x0010:  b73c 0214 0893 bf8e 93b8 7466 2b1b 88c2  .<........tf+...
>         0x0020:  8019 0154 faed 0000 0101 080a 4692 c167  ...T........F..g
>         0x0030:  8b77 b9d3 1503 0100 2006 f287 45d4 311e  .w..........E.1.
>         0x0040:  e3fe 5cfc 9904 b7a6 2e7e 1221 9967 fdd3  ..\......~.!.g..
>         0x0050:  5314 a007 f48d 7490 d6                   S.....t..22:29:52.284802 IP xx.xx.xx.xx.49038 > 17.143.162.202.2195: Flags [.], ack 4764, win 15, options [nop,nop,TS val2339879429 ecr 1184022886,nop,nop,sack 1 {4801:4839}], length 0
>         0x0000:  4500 0040 c041 4000 4006 0ccd b73c 0214  E.. at .A@. at ....<..
>         0x0010:  118f a2ca bf8e 0893 2b1b cca2 93b8 7441  ........+.....tA
>         0x0020:  b010 000f ad39 0000 0101 080a 8b77 ba05  .....9.......w..
>         0x0030:  4692 c166 0101 050a 93b8 7466 93b8 748c  F..f......tf..t.22:29:52.483487 IP 17.143.162.202.2195 > xx.xx.xx.xx.49038: Flags [R], seq 2478339137, win 0, length 0
>         0x0000:  4500 0028 0000 4000 2e06 df26 118f a2ca  E..(.. at ....&....
>         0x0010:  b73c 0214 0893 bf8e 93b8 7441 0000 0000  .<........tA....
>         0x0020:  5004 0000 721b 0000 0000 0000 0000       P...r.........------------------------------------------------------------------------------------
> another :
> 16:18:00.168274 IP 17.143.161.207.2195 > xx.xxx.xx.xx.43361: Flags [P.], seq 4764:4801, ack 37462, win 432, option
> s [nop,nop,TS val 1248125705 ecr 2355901348], length 37
>     0x0000:  4500 0059 c936 4000 3006 14ba 118f a1cf  E..Y.6 at .0.......
>     0x0010:  b73c 0214 0893 a961 1e10 133f 2197 3724  .<.....a...?!.7$
>     0x0020:  8018 01b0 245e 0000 0101 080a 4a64 e309  ....$^......Jd..
>     0x0030:  8c6c 33a4 1503 0100 2012 a99f e30c 37aa  .l3...........7.
>     0x0040:  eda1 e24a 1819 74cb 1a73 2396 f76e b9fa  ...J..t..s#..n..
>     0x0050:  293b 8625 8a9d 09a7 30                   );.%....016:18:00.168326 IP 17.143.161.207.2195 > xx.xxx.xx.xx.43361: Flags [R.], seq 4801, ack 37462, win 498, options [no
> p,nop,TS val 1248125705 ecr 2355901348], length 0
>     0x0000:  4500 0034 c937 4000 3006 14de 118f a1cf  E..4.7 at .0.......
>     0x0010:  b73c 0214 0893 a961 1e10 1364 2197 3724  .<.....a...d!.7$
>     0x0020:  8014 01f2 de75 0000 0101 080a 4a64 e309  .....u......Jd..
>     0x0030:  8c6c 33a4                                .l3.
>
>


-- 
Anty Rao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20151202/42091b9b/attachment-0001.html>


More information about the openssl-users mailing list