[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Fwd: Welcome to libevent-users



hi all

Using libevent-openssl(libevent-2.0.22-stable) library to interact with Apple's APNS server, I observe that response from APNS serverÂsometimesÂis missing.from the result of tcpdump, it seems the response is did send to me,and there is a RST package come next.however, libevent-openssl only detect the TCP connection is broken,not aware of data is pending for read. So i was wondering if this is TCP-related problem : receiver buffer is discarded when receiving RST. Or it's the problem with the openssl library. Can someone shed some light on me, Thanks. following is the result of tcpdump when response can't be read.

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..@.........
        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 val
2339879429 ecr 1184022886,nop,nop,sack 1 {4801:4839}], length 0
        0x0000:  4500 0040 c041 4000 4006 0ccd b73c 0214  E..@.A@.@....<..
        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..(..@....&....
        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@.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                   );.%....0
16: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@.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