Now my hello from main thread doesn't stop printing in my initial
example! Thanks a bunch, Jim!
K.
On Fri, Jun 14, 2013 at 11:58 PM, Jim Ursetto zbignie...@gmail.com wrote:
Should be fixed in 0.2.3. Let me know.
Jim
On Jun 14, 2013, at 3:24 PM, Jim Ursetto zbignie...@gmail.com wrote:
Hi Chickeners!
I have come across a problem with multiple srfi-18 threads when tryping to
listen to UDP sockets:
(use socket)
(set! *socket* (socket af/inet sock/dgram ))
(set! (so-reuse-address? *socket*) #t)
(socket-bind *socket* (inet-address 0.0.0.0 5055))
;; (socket-receive ..) here blocks
Hi,
It's a bug in the socket egg; nonblocking mode is only set during a
socket-connect or socket-accept, which won't be called for UDP.
Temporary workaround: (use posix) and then, after creating the socket, do
either:
(##sys#file-nonblocking! (socket-fileno *socket*))
or equivalently
Jim Ursetto scripsit:
Permanent fix: We should probably make all sockets nonblocking at
creation time instead, since our machinery assumes nonblocking sockets.
+1
--
John Cowan co...@ccil.org http://ccil.org/~cowan
The exception proves the rule. Dimbulbs think: Your counterexample proves
On Fri, Jun 14, 2013 at 10:24 PM, Jim Ursetto zbignie...@gmail.com wrote:
Hi,
It's a bug in the socket egg; nonblocking mode is only set during a
socket-connect or socket-accept, which won't be called for UDP.
I've already reported this issue in the list:
Should be fixed in 0.2.3. Let me know.
Jim
On Jun 14, 2013, at 3:24 PM, Jim Ursetto zbignie...@gmail.com wrote:
Hi,
It's a bug in the socket egg; nonblocking mode is only set during a
socket-connect or socket-accept, which won't be called for UDP.
Temporary workaround: (use
On Jun 14, 2013, at 4:29 PM, Michele La Monaca mikele.chic...@lamonaca.net
wrote:
I've already reported this issue in the list:
http://lists.nongnu.org/archive/html/chicken-users/2013-05/msg00025.html
Sorry, it got lost in the shuffle.
Could you create a ticket for the other two issues you