AltME: R3 Protocols
Messages
Wednesday 5th June, 2013
Andreas
21:22
Right.
GrahamC
21:23
I was getting there ... heh
Rebolek
21:24
But READ in ASYNC-HANDLER gets called.
Andreas
21:25
Are you absolutely sure about that?
Rebolek
21:25
I changed the line 400 to [tcp-port/awake: :redis-port/awake] and it's still the same.
21:26
Andreas: PRINT prints in console, so I guess it should.
Andreas
21:28
And it prints even without setting the subport's awake?
GrahamC
21:29
rp: open
redis://192.168.2.11:10
rp/awake: :async-handler
write rp [ SET asynctest true ]
wait [ rp 3 ]
21:30
does that do anything?
Andreas
21:31
(Warning: IP address mangled.)
Rebolek
21:32
Graham, this prints "Read 5 bytes" and the wait for 3 seconds.
21:32
the=then
GrahamC
21:35
In your write actor you rewrite the event handler I think
21:36
https://github.com/rebolek/prot-redis/blob/master/prot-redis.r3#L440
Rebolek
21:36
I guess this should put the async-handler into tcp-port, no?
GrahamC
21:36
anyway getting too complicated for me ...
Rebolek
21:37
This ASYNC write is old code that doesn't work, it uses some non-existent functions
GrahamC
21:37
I mean if you already set up a hander, why are you rewriting it ?
Rebolek
21:39
I set up the handler for the redis-port and here it's moved to the tcp-port
21:39
It's probably copied from some example.
21:40
From the HTTP protocol.
Last message posted 486 weeks ago.