[Yazlist] How to close a connection at the server side

Adam Dickmeiss adam at indexdata.dk
Thu Aug 11 12:00:18 CEST 2005

stonered wrote:
> Marc,
> thanks for your reply , i know how to do it now by your help.
> i meet  a new problerm today :
> I 'm programming a Z39.50 server using YAZ . i want to shutdown some connections when the server is busy.
> I  looked up the PDF document for an answer, but nothing found. 
> The only thing i found was , by setting an none zero interger in bend_initresult::errcode,  the connection can be closed
> in the period of init request.  but in other request (for example search request), how to do this?

There is currently no way to do this in a portable manner. If you are 
running on a Unix platform and is running a server the usual fashion 
(fork) you can of course use


If YAZ is running in threaded mode, it is tempting to just terminate the 
thread. That would, however, produce memory and handle leaks.

We'll keep this feature request in mind. See


(our bugzilla is public)

/ Adam

> thanks ,  wait for your response .
> ------------------------------------------------------------------------
> _______________________________________________
> Yazlist mailing list
> Yazlist at indexdata.dk
> http://www.indexdata.dk/mailman/listinfo/yazlist

More information about the Yazlist mailing list