Networking Forums

Networking Forums > Computer Networking > Linux Networking > Question about sockets and threads

Reply
Thread Tools Display Modes

Question about sockets and threads

 
 
Lorenzo
Guest
Posts: n/a

 
      02-29-2008, 07:58 PM
Hello guys

Today I've been trying to make a client that makes requests to a small
threaded smtp server. The thing that i'd like to know if it is
possible to make many requests using threads that connect to the same
ip/port, to test how the server behaves with simultaneous clients. I
tried this but it failed. I had to solve it spawning processes.

Is there anything wrong with trying to connect to the same ip/port
from different threads? My program just exited without complaining but
also doing nothing.

PD: The program was done in python under windows, but I trust that you
are the guys that know the answer.
 
Reply With Quote
 
 
 
 
Ashish Shukla आशीष शुक्ल
Guest
Posts: n/a

 
      03-01-2008, 08:04 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> Lorenzo writes:

Lorenzo> Hello guys

Lorenzo> Today I've been trying to make a client that makes requests toa small
Lorenzo> threaded smtp server. The thing that i'd like to know if it is
Lorenzo> possible to make many requests using threads that connect to the same
Lorenzo> ip/port, to test how the server behaves with simultaneous clients. I
Lorenzo> tried this but it failed. I had to solve it spawning processes.

Lorenzo> Is there anything wrong with trying to connect to the same ip/port
Lorenzo> from different threads? My program just exited without complaining but
Lorenzo> also doing nothing.

There is nothing wrong with connect() to the same destination TCP/IP
address from multiple threads. e.g. Download Accelerators, which do
segmented downloading do this.

Lorenzo> PD: The program was done in python under windows, but I trust that you
Lorenzo> are the guys that know the answer.

Probably something wrong with your program. And I'm not sure, if this is
the right group for such question, probably you should try,
comp.os.ms-windows.networking (if it exists) .

HTH
- --
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHyRwRHy+EEHYuXnQRAsKEAKDZ2p3aKVXn3CrkdGmyO+ n2vbSJ+wCbBAjK
3P7kczwnajsmrjTSoQ9IHqk=
=KHMd
-----END PGP SIGNATURE-----
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
All my threads are disappearing. Derrick Fawsitt Broadband 4 03-29-2007 12:52 AM
Multiple Accept (listenning) threads zferentz@gmail.com Linux Networking 1 08-02-2006 09:27 AM
scheduling threads ? vivekian Linux Networking 2 04-18-2006 04:49 PM
General question about use of ports when programming with sockets 0to60 Windows Networking 4 10-10-2005 09:59 AM
OT: Saving Google threads as TXT? Terry Pinnell Broadband 2 01-27-2005 05:10 PM



1 2 3 4 5 6 7 8 9 10 11