[PATCH] conn.c

Alexander Malysh amalysh at kannel.org
Thu Aug 5 09:37:04 CEST 2010


for this purpose we have conn_wait with timeout...
or I miss something?

Thanks,
Alexander Malysh

Am 05.08.2010 um 02:27 schrieb Rene Kluwen:

> Because if I do what you say, then receiving something from bearerbox or any other box for that matter will block until it receives data. Which may never come.
> That’s why I want to raise an error receiving data (by means of the shutdown function) and after that I can finish the thread.
>  
> Or does gwthread_wakeup(…) do the same?
>  
> == Rene
>  
>  
> From: Alexander Malysh [mailto:malysh00 at googlemail.com] On Behalf Of Alexander Malysh
> Sent: Wednesday, 04 August, 2010 21:31
> To: Rene Kluwen
> Cc: 'Kannel Devel'
> Subject: Re: [PATCH] conn.c
>  
> HI Rene,
>  
> I don't get it, why you need this function? closing/shutdown of connection is not a inter-thread communication.
>  
> why not just?
>  
> stop = 1
> gwthread_wakeup(...)
>  
> Thanks,
> Alexander Malysh
>  
> Am 02.08.2010 um 16:42 schrieb Rene Kluwen:
> 
> 
> Hereby I want to propose a patch in gwlib to add a function that would make life a lot easier in smppbox.
>  
> == Rene
>  
> <conn_shutdown2.patch>
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.kannel.org/pipermail/devel/attachments/20100805/6af71033/attachment-0001.html>


More information about the devel mailing list