[Vortex] More strange behavior during MSG/ANS pattern
Yourch, Chris
chris at replicus.com
Tue Oct 16 20:24:19 CEST 2007
Help!!!!
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
session".
-----Original Message-----
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.
CLIENT:
Channel = get_channel_from_my_channel_pool();
vortex_channel_send_msg(channel, output_buffer_ptr,
output_buffer_length, &msg_no);
// Execution goes back to GUI at this point.
// This is the simple frame handler on the client.
void client_frame_handler()
{
// Get the payload here and write to a file on the local machine.
}
SERVER:
void Frame_handler()
{
int msgno = vortex_frame_get_msgno(frame);
Loop and read a file here
{
ReadFileChunkHere();
vortex_channel_send_ans_rpy(channel, file_chunk, file_chunk
_length, msgno);
}
vortex_channel_finalize_ans_rpy(channel, msgno);
}
_______________________________________________
Vortex mailing list
Vortex at lists.aspl.es
http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
More information about the Vortex
mailing list