Re: WSPMachine destroying question
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Vjacheslav, On Monday, January 13, 2003, at 03:13 PM, Vjacheslav Chekushin wrote: > WSPMachine is destroyed if state=NULL_SESSION > But how WSPMachine will be desroyed if client doesn't > send disconnect event but simply end his session without > any indication (And WSPMachine remains in state CONNECTED). You mean stop wap browsing ? This does not indeed end session, because the client may resume browsing. Disconnecting is a separate event. > Will WSPMachine be destroyed after some time > or it will be stored in WSPMachine list untill we stop WAP gateway? WSPSessionMachine will stay until client disconnects separately, if connection- oriented service is used. > > I describe it with example: > I work with one phone and sequentialy create 3 sessions. > But thease sessions has been removed only when I stpopped gateway: > > 2003-01-10 14:19:40 [0] DEBUG: Waiting for 1 > (wap/wsp_session.c:main_thread) to terminate > 2003-01-10 14:19:40 [1] DEBUG: Thread 1 > (wap/wsp_session.c:main_thread) terminates. > 2003-01-10 14:19:40 [0] DEBUG: WSP: 3 session machines left. > 2003-01-10 14:19:40 [0] DEBUG: Destroying WSPMachine 0x41a10388 > 2003-01-10 14:19:40 [0] DEBUG: Destroying WSPMachine 0x41a07fd8 > 2003-01-10 14:19:40 [0] DEBUG: Destroying WSPMachine 0x8209500 You can always use connectionless service, if you for some reason cannot disconnect sessions. Aarno