module模块的测试心得(4)


    {{EPOLLIN|EPOLLOUT, {u32=3085643873, u64=57891489311305825}}}, 4096, 60000) = 1
    gettimeofday({1299826679, 729635}, NULL) = 0
    recv(6, "GET /test.jsp HTTP/1.1\r\nHost: te"..., 1024, 0) = 1024
    recv(6, "; Province=010; City=010; __utmc"..., 7564, 0) = 117
    getsockopt(7, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
    writev(7, [{"\0224\4\177\2\2\0\10HTTP/1.1\0\0\t/test.jsp\0\0\r6"..., 1155}], 1) = 1155  //发送请求给后端
    recv(7, 0x9892420, 4096, 0)             = -1 EAGAIN (Resource temporarily unavailable)  //及时去读取了
    recv(6, 0xbff5f143, 1, MSG_PEEK)        = -1 EAGAIN (Resource temporarily unavailable)
    epoll_wait(3, {{EPOLLIN|EPOLLOUT, {u32=3085643960, u64=13832223603290747064}}}, 4096, 60000) = 1
    gettimeofday({1299826679, 731080}, NULL) = 0
    recv(7, "AB\0;\4\0\310\0\2OK\0\0\2\0\fContent-Type\0\0\tt"..., 4096, 0) = 87
    write(1, "key=Content-Type,value=text/html"..., 33key=Content-Type,value=text/html
    ) = 33
    write(1, "key=Content-Length,value=10\n", 28key=Content-Length,value=10
    ) = 28
    writev(6, [{"HTTP/1.1 200 OK\r\nServer: nginx\r\n"..., 156}, {"2 + 2 = 4\n", 10}], 2) = 166
    recv(6, 0x9881c40, 1024, 0)             = -1 EAGAIN (Resource temporarily unavailable)
    epoll_wait(3, {{EPOLLOUT, {u32=3085643960, u64=13832223603290747064}}}, 4096, 60000) = 1  //为啥多出这个事件
    gettimeofday({1299826679, 732019}, NULL) = 0
    epoll_wait(3,

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wywpsg.html