[ace-users] loosing signal for "connection closed"
Ali Hussnain Shah
hussnain_shah at gmx.net
Wed Aug 29 04:43:29 CDT 2007
ACE VERSION: 5.5.1
HOST MACHINE and OPERATING SYSTEM:
Intel and AMD both, Windows XP (SP2), 5.1.2600.2180
(xpsp_sp2_rtm.040803-2158)
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
#include "ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
using Microsoft Visual C++
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
SYNOPSIS:
loosing signal for "connection closed"
DESCRIPTION:
i am writing a small server wich should forward data from one client
C1 to the second one C2.
C1 is sending data very fast, to slow down C1 with ACE handle_input of
C1's handler returns value > 0 if there is still pending data for C2.
Data from C1 is put in the message queue of C2, which C2 will forward in
it's handle_ouput after the reactor does a callback. For that i have
increased the size of C2's message queue with
msg_queue()->high_water_mark().
Problem is: All the data is transferred successfully, C1 does send data
slowly if C2 is still processing. But sometimes the reactor does not
call handle_input() if C1 is closing its socket () and handle_close of
C1 is nerver called?
Any hints would be very helpfull?
Douglas C. Schmidt schrieb:
> Hi Ali,
>
> To ensure that we have proper version/platform/compiler information,
> please make sure you fill out the appropriate problem report form (PRF),
> which is in
>
> $ACE_ROOT/PROBLEM-REPORT-FORM
> $TAO_ROOT/PROBLEM-REPORT-FORM
>
> or in
>
> $ACE_ROOT/BUG-REPORT-FORM
> $TAO_ROOT/BUG-REPORT-FORM
>
> in older versions of ACE+TAO. Make sure to include this information
> when asking any questions about ACE+TAO since otherwise we have to
> "guess" what version/platform/compiler/options you've using, which is
> very error-prone and slows down our responsiveness. If you don't use
> the PRF, therefore, it is less likely that someone from the core
> ACE+TAO developer team will be able to answer your question.
> Naturally, we encourage and appreciate other members of the ACE+TAO
> user community who can respond to questions that they have the answers
> to.
>
> Thanks,
>
> Doug
>
>> i am writing a small server wich should forward data from one client
>> C1 to the second one C2.
>>
>> C1 is sending data very fast, to slow down C1 with ACE handle_input of
>> C1's handler returns value > 0 if there is still pending data for C2.
>>
>> Data from C1 is put in the message queue of C2, which C2 will forward in
>> it's handle_ouput after the reactor does a callback. For that i have
>> increased the size of C2's message queue with
>> msg_queue()->high_water_mark().
>>
>> Problem is: All the data is transferred successfully, C1 does send data
>> slowly if C2 is still processing. But sometimes the reactor does not
>> call handle_input() if C1 is closing its socket () and handle_close of
>> C1 is nerver called?
>>
>> Any hints would be very helpfull?
>>
>>
>> with best regards,
>> Ali
>>
>> _______________________________________________
>> ace-users mailing list
>> ace-users at mail.cse.wustl.edu
>> http://mail.cse.wustl.edu/mailman/listinfo/ace-users
>
>
More information about the Ace-users
mailing list