A problem involving threads and http streams
Torbjörn Lager <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CA+Y3JZgiO=NBo=7PnsrAoVW1d+hf4=13hDxa6bzAVWsg_sVeDA@mail.gmail.com> |
Dear all, In connection with my work on Pengine I have run into an issue I don't understand. The help you see the problem I have attached a zip archive with three small files, two servers and one client: test_server_buggy.pl test_server_working.pl test_client.pl The difference between test_server_working.pl and test_server_buggy.pl is very small. In test_server_working.pl I use a message queue with a hard coded name 'out'. This works but isn't good enough since my application requires that the name of the message queue is unique. In test_server_buggy.pl I use http_session_assert/1 and http_session_data/1 to remember the unique message queue name as given by message_queue_create/1. This doesn't work, since an error error(existence_error(stream,<stream>(0x7fb2d9201fb0)),context(http_stream:is_cgi_stream/1,_G132)) is thrown. I don't understand why this happens and how to work around it. I use the latest SWI Prolog developer version on a Mac. Best regards, Torbjörn -- Torbjörn Lager Professor of General and Computational Linguistics Department of Philosophy, Linguistics and Theory of Science University of Gothenburg Box 200, SE-405 30 Gothenburg, Sweden Phone: +46317864962 -------------- next part -------------- A non-text attachment was scrubbed... Name: test.zip Type: application/zip Size: 2925 bytes Desc: not available URL: <https://lists.iai.uni-bonn.de/pipermail/swi-prolog/attachments/20130914/1695b3ae/attachment.zip>