AltME: R3 Protocols
Wednesday 5th June, 2013
I set up the handler for the redis-port and here it's moved to the tcp-port
It's probably copied from some example.
From the HTTP protocol.
because in our write actor, there is no 'port defined
our => your
just guessing now ... must have breakfast!
I changed the Async part of WRITE to:
; --- ASYNCHRONOUS OPERATION
unless open? redis-port [cause-error 'Access 'not-open redis-port/spec/ref]
either probe tcp-port/spec/port-state = 'ready [
write tcp-port to binary! make-bulk-request data
tcp-port/locals: to binary! make-bulk-request data
And I setup tcp's awake in OPEN, but the result is still the same, it prints and then it waits.
Ok, breakfast is important! :)
I pushed latest version to GitHub together with %async-test.r3 so ou can look at the version I'm using here.
Do you have the console print output you get somewhere gisted?
just a moment...
There's wait after "..Read 5 bytes"
Thursday 6th June, 2013
don't know what's current but this line should be
tcp-port/spec/port-state: false or none
so, your example could be
write rp [ SET asynctest true ]
wait [ rp 3 ]
This doesn't help, it's still stuck in the wait loop, even with the change from ASYNC-HANDLER to AWAKE-HANDLER.
Wednesday 12th June, 2013
During redis:// test I crashed Rebol with "#9910: unspecific" error. I'll try to isolate the problem (but I guess it needs lots of reads and writes on TCP port). Has anybody seens this error before?
Last message posted 193 weeks ago.