From: marco <th...@gm...> - 2001-12-05 11:32:16
|
HI, DG> In fact I had the same problem with some of our code. The only work around DG> that we found was to DG> close the listening socket. That cause the hanging code ".accept()" to DG> throws an exception. I dont understand that, have you changed the marquee code or how do you got access to the socket? -- Best regards, marco DG> Why they did not implement an accept method with a timeout, that is a really DG> good question ! DG> Dominique Gallot DG> -----Original Message----- DG> From: Greger Ohlson [mailto:qi...@ks...] DG> Sent: mardi 4 décembre 2001 9:25 DG> To: marco DG> Cc: xml...@li... DG> Subject: Re: [Xmlrpc-developers] How to quit the server? DG> Hi Marco, DG> Good question. Currently, there's no way stopping an XmlRpcServer that has DG> been started with runAsService(), as far as I know. The method hangs in a DG> ServerSocket.accept() call. I'll take a closer look at it today and see DG> what has to be done to make it possible to stop it from another thread. DG> And please feel free to contribute with a solution, anyone. DG> Regards, DG> Greger DG> marco wrote: >> >> Hi List, >> >> Thanks for this great Xml Rpc Implementation! >> >> i have a little question, i'm running an XmlRpc Server in an Applet >> with the Sun plugIn, how can i free the serverport when leaving the >> site or on an reload? >> i get this error: >> Serverkomponente could not start: java.net.BindException: Address in DG> use: JVM_Bind >> >> destroying the applet wont work, ending the thread i build either >> not. The Serversocket is still assigned.... >> >> -- >> Best regards, >> marco mailto:th...@gm... >> >> _______________________________________________ >> Xmlrpc-developers mailing list >> Xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlrpc-developers DG> _______________________________________________ DG> Xmlrpc-developers mailing list DG> Xml...@li... DG> https://lists.sourceforge.net/lists/listinfo/xmlrpc-developers |