[Mono-list] Socket and multiple threads

Dick Porter dick@ximian.com
17 Jul 2003 13:55:59 +0100


On Thu, 2003-07-17 at 10:51, J=F6rg Rosenkranz wrote:
> Hi all,
>=20
> I have some problems with sockets and multiple threads:
> Every time a program is communicating over one socket from different thre=
ads
> I get following exception:
>=20
> The socket has been shut down

Something has closed the socket (maybe explicitly, maybe the object was
collected by the GC.)

> I noticed this behaviour using different components i.e. Mono SqlClient a=
nd a FTP component.
> Access to the components is always exclusively locked to one thread at a =
time. So multiple threads
> aren't accessing the socket simultaneously.
>=20
> Are there any known problems with socket communication and multiple threa=
ds?

Not that we know of.  If you can reproduce the problem reliably, please
report it to http://bugzilla.ximian.com

A small test case (if possible) makes it much easier for us to diagnose
the problem.

- Dick