Simultaneous connection - WeOnlyDo Discussion board

Simultaneous connection (wodHttpDLX)

by Shakeeb Ahmed, Thursday, September 20, 2007, 04:54 (6275 days ago)

AOA,

I want to know how much simultaneous connection I can open. using syntax

wodhttpdlx[] http = new wodhttpdlx[100];

is this 100 simultaneous connection..


If this is then tell me when I am running a app on my remote sever which is using wodhttp I am getting disconnected.
Why

Re: Simultaneous connection

by wodDamir, Thursday, September 20, 2007, 13:13 (6275 days ago) @ Shakeeb Ahmed

Hi Ahmed,

Do you receive an error? Can you tell me which one is it?

Also, another question would be if you are using blocking?

Regards,
Damba

Re: Simultaneous connection

by Shakeeb Ahmed, Thursday, September 20, 2007, 18:28 (6275 days ago) @ wodDamir

This is my code
//.......................
for (int i = 0; i < 100; i++)
{
if (i == Account.Length)
break;
masterindex = masterindex + 1;
TotalTried++;
this.lbTotalTried.Text = TotalTried.ToString();

string acc = this.Account.GetValue(masterindex).ToString();

if (acc.Contains( : ) == true)
{
string[] detail = acc.Split(':');
strEmail = detail.GetValue(0).ToString();
strPass = detail.GetValue(1).ToString();

http = new wodHttpDLXCom();
http.Notification = this;
http.Request.FormPost.RemoveAll();
http.Request.Cookies.RemoveAll();
http.Request.UserAgent = @ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 ;
http.Compression = true;
http.Request.Tag = i;
http.AutoRedirect = true;
http.Request.FormPost.Add( Login , );
http.Request.FormPost.Add( email , email);
http.Request.FormPost.Add( password , pass);
http.Request.FormPost.Add( Submit , Submit );
http.Post(url);
}
}
//.......................
Now wat I want to know is that I am opening how much connection simultaneously
............
[quote]Hi Ahmed,

Do you receive an error? Can you tell me which one is it?

Also, another question would be if you are using blocking?

Regards,
Damba[/quote]

Re: Simultaneous connection

by woddrazen, Thursday, September 20, 2007, 18:48 (6275 days ago) @ Shakeeb Ahmed

Hi Ahmed,


You are opening 100 connection simultaneously. Which type of C is this?

Please try to use Blocking Mode. You can done that by setting wodHttpDLX Blocking Property to true.

Let us know how it goes.


Drazen

Re: Simultaneous connection

by Shakeeb Ahmed, Thursday, September 20, 2007, 20:15 (6275 days ago) @ woddrazen

I am using wodHttp in an app and using that app on a remote server. Now the problem is I am getting disconnected from my remote server..Wy.

Hi Ahmed,


You are opening 100 connection simultaneously. Which type of C is this?

Please try to use Blocking Mode. You can done that by setting wodHttpDLX Blocking Property to true.

Let us know how it goes.


Drazen

Re: Simultaneous connection

by woddrazen, Thursday, September 20, 2007, 20:36 (6275 days ago) @ Shakeeb Ahmed

Ahmed,


If you are using DEMO wodHttpDLX version than you shouldn't distribute wodHttpDLX on some other machine. You should install wodHttpDLX on that machine. This is just an issue in DEMO version.

About your code. If this is all your code than you should use before Post Method wodHttpDLX Get Method to get resource from server. After Get Method add all items which server request and than use Post Method.

Something like this:
[code]
http = new wodHttpDLXCom();
http.Notification = this;
http.Request.FormPost.RemoveAll();
http.Request.Cookies.RemoveAll();

http.Get(url);
http.Blocking = true;

http.Request.UserAgent = @ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 ;
http.Compression = true;
http.Request.Tag = i;
http.AutoRedirect = true;
http.Request.FormPost.Add( Login , );
http.Request.FormPost.Add( email , email);
http.Request.FormPost.Add( password , pass);
http.Request.FormPost.Add( Submit , Submit );
http.Post(url);
[/code]

Did you check if your URL have some Cookie that should be send?

Can you check what does http.Request.Cookies.Count; returns?

Also I would add that you can use IEWatch (http analyzer tool) and find out what should be send to server and send it with wodHttpDLX.

Let us know how it goes.


Drazen