SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Race condition in SCTP lib


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
  • To: "discussion (E-mail)" <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] Race condition in SCTP lib
  • Date: Wed Jun 29 15:02:01 2005
  • List-id: SCTP Discussions <discussion.sctp.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 29 June 2005 11:27, Andreas Fink wrote:
> Hello,
>
> I think we might have a race condition in SCTP lib.
> I have my application crashing form time to time at startup but not
> always.
> Here's what I do:
>
> a) I create 4 threads. one thread for every M2PA link out of a MTP3 link

The sctplib itself is not thread-safe. If you need thread-safety, your program
has to implement it. The socketapi package implements a standard socket
interface to the sctplib, including thread-safety. If you need thread-safety
using the sctplib API, you can have a look into the sources of the socket
API, especially sctpsocketmaster.cc.


Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz

University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
- -----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage: http://www.exp-math.uni-essen.de/~dreibh
=======================================================================


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCwpsN32BbsHYPLWURAitQAKCsjOvMr5fp9bDIfWqT5VYy35eXpQCfRUJu
VLGsO3VurysAQBKNaRq4HRg=
=RVUJ
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.19+.

Top of page