- From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
- To: sctp-discussion AT sctp.de
- Cc: 岳利军 <yuelijun AT gmail.com>
- Subject: Re: [SCTP-Discussion] help:ext_close error!!
- Date: Tue, 20 Oct 2009 22:12:09 +0200
- List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
- List-id: SCTP Discussions <sctp-discussion.sctp.de>
- Organization: University of Duisburg-Essen, Institute for Experimental Mathematics
On Dienstag, 20. Oktober 2009, 岳利军 wrote:
>
Dear all:
>
can you tell me why?
>
After "ext_accpt" by server ,when server try to use
>
"ext_close(connect_fd)" to close the sctp connect,it caused an error !!
>
"ERROR: ext_close(1022) ---still in use!" I have a test later,even the sctp
>
client have exit,the error will occur also. Then I add the code
>
"ext_close(fd)" to the api socket_programes after "fd = ext_accpt()",the
>
same error appear! when I use "ext_shutdown(fd,2)" ,it can down the
>
connect,but can't close the fd.
>
Can you tell me how can I close the connect fd in the server part,by
>
the way,I can't close the "server_fd" by "ext_close(server_fd)" after did
>
"ext_accpt" also!
The sctplib socket API implementation assumes that all SDs accepted by
ext_accept() are closed before the SD accepting the incoming connections is
closed.
Example:
sd = socket(...)
newSD1 = ext_accept()
...
ext_close(newSD1)
ext_close(sd)
If you call ext_close(sd) before ext_close(newSD1), you get the "still in
use"
error.
Best regards
--
=======================================================================
Dr. Thomas Dreibholz
University of Duisburg-Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT iem.uni-due.de
Homepage:
http://www.iem.uni-due.de/~dreibh
=======================================================================
Attachment:
signature.asc
Description: This is a digitally signed message part.
Archive powered by MHonArc 2.6.19+.