Forum OpenACS Development: Re: socket connections

Collapse
2: Re: socket connections (response to 1)
Posted by Andrew Piskorski on
I don't think procs are the problem, although I can't remember ever trying that. Maybe what's going on, is you're trying to pass sockets across threads, and that's why it's not working. I suspect sockets cannot normally be shared between threads. Give us more details about exactly what you're doing and what you're trying to accomplish.

FYI, I vaguely remember that either the latest version of Tcl (8.4.x), or some AOLserver add-on module (I forget which, maybe both) has some special magic by which you can pass sockets across threads. But that is not the default behaviour, if you really do need to do it, I think you have to do something special to invoke it.