zippy / ceptr

(a recomposable medium for distributed social computing) || (semantic self-describing protocol stacks)
http://ceptr.org
GNU General Public License v3.0
88 stars 17 forks source link

Stream thread synchronization problem #151

Open zippy opened 8 years ago

zippy commented 8 years ago

The current code we use for HTTP edge receptor reveals a synchronization problem:

The loop ends with a call to CLOSE_STREAM, which can end up shutting down the stream before the response from the other thread gets sent. This shows up with the system throwing a "bad stream type" error because the stream gets deallocated and pointer to bogus memory.

This means we have to do two things: