[Ace-users] [ace-users] after accept_svc_handler returns -1, how to clean the connection completely?

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Oct 16 10:00:27 CDT 2007


>ace version 5.6.1
>host windows xp sp2 /suse linux enterprise server 10
>compiler vs studio 2003/gcc 3.3.3
>In my app, I returns -1 from accept_svc_handler to reject a tcp
>I use telnet to test this action. After the connection is refused, I
>find telnet is not
>exited totally (it is still waiting to exit). So I guess to reject a
>tcp connection,
>before return -1 from accept_svc_handler, there must be something to

It's not clear what you're doing, but you need to make sure that you
call close() on the accepted ACE_SOCK_Stream.

Take care,

Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu

More information about the Ace-users mailing list