[Vortex] More strange behavior during MSG/ANS pattern
chris at replicus.com
Tue Oct 16 20:24:19 CEST 2007
It seems there is something wrong with the pattern I am using to send a
large file. Using the MSG/ANS pattern as suggested in the docs does not
seem to work. The server gets the MSG and then immediately calls
vortex_channel_send_ans_rpy() a bunch of times to send the reply but the
client never gets the reply! The server seems to be able to send 1 or 2
of the initial replies via vortex_channel_send_ans_rpy() but then it
fails with the message "client have disconnected without closing
From: vortex-bounces at lists.aspl.es [mailto:vortex-bounces at lists.aspl.es]
On Behalf Of Yourch, Chris
Sent: Monday, October 15, 2007 3:41 PM
To: vortex at lists.aspl.es
Subject: [Vortex] More strange behavior during MSG/ANS pattern
I have noticed that when I step through my code with my debugger on the
client side that it seems to slow operations down enough for the replies
(via vortex_channel_send_ans_rpy calls on the server side) to get back
to the client. What my code is doing is sending a file from server to
client. The error message I am usually getting is "client have
disconnected without closing session". Here's the simplified code.
Channel = get_channel_from_my_channel_pool();
// Execution goes back to GUI at this point.
// This is the simple frame handler on the client.
// Get the payload here and write to a file on the local machine.
int msgno = vortex_frame_get_msgno(frame);
Loop and read a file here
vortex_channel_send_ans_rpy(channel, file_chunk, file_chunk
Vortex mailing list
Vortex at lists.aspl.es
More information about the Vortex