用windows sockets协议录了一个telnet的脚本,多个并发执行的时候老报错
问大家一个问题,我用windows sockets协议录了一个telnet的脚本,多个并发执行的时候老报错,是不是需要做下参数化或者关联?如果是的话应该怎么做呢?脚本如下:
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.0.100:443",LrsLastArg);
lrs_receive("socket0", "buf0", LrsLastArg);
lrs_send("socket0", "buf1", LrsLastArg);
lrs_receive("socket0", "buf2", LrsLastArg);
lrs_send("socket0", "buf3", LrsLastArg);
lrs_receive("socket0", "buf4", LrsLastArg);
lrs_send("socket0", "buf5", LrsLastArg);
lrs_receive("socket0", "buf6", LrsLastArg);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf8", LrsLastArg);
lrs_send("socket0", "buf9", LrsLastArg);
lrs_receive("socket0", "buf10", LrsLastArg);
lrs_send("socket0", "buf11", LrsLastArg);
lrs_receive("socket0", "buf12", LrsLastArg);
lrs_send("socket0", "buf13", LrsLastArg);
lrs_receive("socket0", "buf14", LrsLastArg);
lrs_send("socket0", "buf15", LrsLastArg);
lrs_receive("socket0", "buf16", LrsLastArg);
lrs_send("socket0", "buf17", LrsLastArg);
lrs_receive("socket0", "buf18", LrsLastArg);
lrs_send("socket0", "buf19", LrsLastArg);
lrs_receive("socket0", "buf20", LrsLastArg);
lrs_send("socket0", "buf21", LrsLastArg);
lrs_receive("socket0", "buf22", LrsLastArg);
lrs_send("socket0", "buf23", LrsLastArg);
lrs_receive("socket0", "buf24", LrsLastArg);
lrs_send("socket0", "buf25", LrsLastArg);
lrs_receive("socket0", "buf26", LrsLastArg);
lrs_send("socket0", "buf27", LrsLastArg);
lrs_receive("socket0", "buf28", LrsLastArg);
lrs_send("socket0", "buf29", LrsLastArg);
lrs_receive("socket0", "buf30", LrsLastArg);
lrs_send("socket0", "buf31", LrsLastArg);
lrs_receive("socket0", "buf32", LrsLastArg);
lrs_send("socket0", "buf33", LrsLastArg);
lrs_receive("socket0", "buf34", LrsLastArg);
lrs_send("socket0", "buf35", LrsLastArg);
lrs_receive("socket0", "buf36", LrsLastArg);
lrs_send("socket0", "buf37", LrsLastArg);
lrs_receive("socket0", "buf38", LrsLastArg);
lrs_close_socket("socket0");
return 0;
}
错误信息为:Action.c(26): Error : socket0 - Software caused connection abort. Error code : 10053. 我想对登录的用户名和密码应该参数化吧!
多个用户并发是否有达到telnet限制的最大用户连接数? 端口要做参数化,不能同时打开同一个端口 脚本中的端口只起中介的作用,不是真正去连的telnet端口,因此这一点没有影响;
也不是用户名和密码的问题,因为查看loadrunner的日志显示为刚去连接的时候就断了,还没到输入用户名这一步呢,因此socket中断,就产生了10053错误。
我的telnet服务器设置的最大连接数为150,但是显然在连接数低于这个值的时候就连不上了,不知道什么原因造成的:( 不懂,但送上书一本,希望对你有帮助 你在运行脚本的时候能正常通过吗?
应该本身脚本运行就存在问题的。脚本中session id是要做关联的,就是在buf5部分。还有……
你具体说明白吧,你在测试什么?因为我最近也一直在搞这个东西。 还有你可以参看这个帖子,对流媒体服务器达尔文进行性能测试的总结
是我同事写的。 你指的session id是telnet的哪个参数啊?我测的是一个中介软件的转发功能 A connection abort was caused internal to your host machine. The software caused a connection abort because there is no space on the socket's queue and the socket cannot receive further connections.
WinSock description:The error can occur when the local network system aborts a connection. This would occur if WinSock aborts an established connection after data retransmission fails (receiver never acknowledges data sent on a datastream socket). 回复 5# suchboy
收藏一下。呵呵 {:4_99:} 没看明白。。。 求大神进来解决下。
页:
[1]