Sequentially Sending Request to WebService Server
来源:互联网 发布:linux 查看系统信息 编辑:程序博客网 时间:2024/06/01 17:07
DateTime head = DateTime.Now; int rstart1 = int.Parse(TextBox3.Text); int rend1 = int.Parse(TextBox4.Text); int total = r.Next(rstart1, rend1); int times = int.Parse(TextBox2.Text); times += 1; TextBox2.Text = times.ToString(); Label3.Text = total.ToString(); for (int i = 0; i < total; i++) { DateTime start = DateTime.Now; Thread t = new Thread(new ThreadStart(this.sendComment)); t.Start(); DateTime end = DateTime.Now; TimeSpan duration = end.Subtract(start); if (10 - duration.TotalMilliseconds > 0) Thread.Sleep(10 - duration.Milliseconds); else Thread.Sleep(0); TimeSpan duration2 = end.Subtract(head); if (duration2.TotalMilliseconds > 1000) break; } String dt = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString() + DateTime.Now.Millisecond.ToString(); DataSetForAETableAdapters.performaceTableAdapter adapter = new DataSetForAETableAdapters.performaceTableAdapter(); adapter.Connection.Open(); adapter.InsertDraft2WithExpID(total, long.Parse(dt), expid+":" + rstart1.ToString() +"-"+ rend1.ToString()); adapter.Connection.Close(); if (times >= 62) Timer2.Enabled = false; }
- Sequentially Sending Request to WebService Server
- XMLHttpRequest - Sending a Request to the Server
- "A transport-level error has occurred when sending the request to the server"的解决办法
- C#恢复数据库之后,出现错误transport-level error has occurred when sending the request to the server
- 1231 Sending the Request
- Sending redirect to another servlet/JSP without loosing the request parameters
- Sending Parameters to JasperReport
- Server was unable to process request.
- 发送邮件失败:Sending the email to the following server failed
- Java Mail 发送邮件失败问题:Sending the email to the following server failed
- commons-mail报错,提示EmailException: Sending the email to the following server failed
- Sending the email to the following server failed : smtp.exmail.qq.com:465
- IOException in sending Request :: Connection refused: connect
- Sending an HTTP POST request on iOS
- Upload files by sending multipart request programmatically
- Upload files by sending multipart request programmatically
- ra layer request failed could not connect to server
- git 提示Push错误“Error writing request body to server”
- 哲学名言名句汇总
- Css中需要注意的一些问题
- 熵最大定理 两种理解
- 自定义android的tab样式
- MySQL复制表的常用的两种方法
- Sequentially Sending Request to WebService Server
- cookie小试刀—编写servlet利用Cookie保存上次访问该servlet的时间
- Hibernate的Antlr在Weblogic中产生Jar冲突的原因及解决
- Junit 的error 和failer 的区别
- HTML5 绘制图形【4】
- 让XP SP3远程桌面支持“网络级别身份验证”
- ALV CHECKBOX
- input 变态
- 深入理解SP、LR和PC