51Testing软件测试论坛

标题: 请大家看下这段Winsock日志 [打印本页]

作者: babel    时间: 2009-2-6 12:14
标题: 请大家看下这段Winsock日志
Action.c(32): lrs_receive(socket1, buf3)
Action.c(32): Mismatch (expected 114 bytes, 8 bytes actually received)
Action.c(34): lrs_save_param(socket1, buf3, param3, 48, 20)
Action.c(36): param3:\x00H系统管理员\x00\xfd

Action.c(32)已提示实际只收到了8字节,那么Action.c(34)我是从48字节开始取值,怎么还能取到正确的值呢?
注:正常情况下即Action.c(32)收到了114字节,Action.c(36)这样显示是正确的
作者: aman_cao    时间: 2009-2-9 10:35
If the buffer size does not match (smaller or larger), lrs_receive rereads the incoming data carried by the socket, until the receive_timeout. By default the receive_timeout is 10 seconds。
作者: babel    时间: 2009-2-9 11:06
不是设置超时时间的问题,在脚本回放时我做了些操作,使回放时实际只能收到8字节。我现在就有些不明白的是,Action.c(32)已提示实际只收到了8字节,那么Action.c(34)我是从48字节开始取值,怎么还能取到正确的值呢?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2