SwazooIliad stop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SwazooIliad stop

Stefan Schmiedl
eow that's an interesting stack trace coming up when trying
to stop swazoo.... looks like an attempt to start a new server
happens here.

stefan@g128 ot $ gst-remote --eval 'Iliad.SwazooIliad stop'
Object: File error: Address already in use
SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
SystemExceptions.FileError class(Exception class)>>signal: (AnsiExcept.st:79)
File class>>checkError: (File.st:85)
File class>>checkError (File.st:74)
[] in Sockets.TCPSocketImpl(Sockets.AbstractSocketImpl)>>bindTo:port: (Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:115)
[] in BlockClosure>>ifCurtailed: (BlkClosure.st:287)
BlockClosure>>ensure: (BlkClosure.st:269)
BlockClosure>>ifCurtailed: (BlkClosure.st:289)
Sockets.TCPSocketImpl(Sockets.AbstractSocketImpl)>>bindTo:port: (Sockets.star#VFS.ZipFile/AbstractSocketImpl.st:117)
Sockets.ServerSocket>>port:queueSize:bindTo: (Sockets.star#VFS.ZipFile/Sockets.st:1009)
Sockets.ServerSocket class>>port:queueSize:bindTo: (Sockets.star#VFS.ZipFile/Sockets.st:945)
Sockets.ServerSocket class>>port:queueSize: (Sockets.star#VFS.ZipFile/Sockets.st:916)
SpSocket>>listenBackloggingUpTo: (Sport.star#VFS.ZipFile/sport.st:1181)
Swazoo.SwazooSocket>>listenFor: (Swazoo.star#VFS.ZipFile/HTTP.st:679)
Swazoo.HTTPServer>>start (Swazoo.star#VFS.ZipFile/HTTP.st:457)
[] in Swazoo.SwazooServer>>serverFor: (Swazoo.star#VFS.ZipFile/Core.st:927)
Set(Iterable)>>detect:ifNone: (Iterable.st:107)
Swazoo.SwazooServer>>serverFor: (Swazoo.star#VFS.ZipFile/Core.st:924)
[] in Iliad.Site(Swazoo.SwazooSite)>>stop (Swazoo.star#VFS.ZipFile/Core.st:568)
OrderedCollection(SequenceableCollection)>>do: (SeqCollect.st:822)
Iliad.Site(Swazoo.SwazooSite)>>stop (Swazoo.star#VFS.ZipFile/Core.st:575)
Swazoo.SwazooServer>>stopSite: (Swazoo.star#VFS.ZipFile/Core.st:1051)
Swazoo.SwazooServer class>>stopSite: (Swazoo.star#VFS.ZipFile/Core.st:743)
Iliad.SwazooIliad class>>stop (Iliad-Swazoo.star#VFS.ZipFile/SwazooIliad.st:14)
UndefinedObject>>executeStatements (a String:1)
[] in STInST.STEvaluationDriver>>evaluate: (Compiler.star#VFS.ZipFile/StartCompiler.st:210)

confused,
s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: SwazooIliad stop

Stefan Schmiedl
On Sun, 12 Jul 2009 18:13:04 +0200
Stefan Schmiedl <[hidden email]> wrote:

> eow

Gremlins must have hidden inside the keyboard, since that was supposed
to be "Now"...

> that's an interesting stack trace coming up when trying
> to stop swazoo.... looks like an attempt to start a new server
> happens here.

I forgot to mention that I started swazoo via

  Iliad.SwazooIliad startOn: 4080

but still...

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: SwazooIliad stop

Stefan Schmiedl
On Sun, 12 Jul 2009 18:36:05 +0200
Stefan Schmiedl <[hidden email]> wrote:

> I forgot to mention that I started swazoo via
>
>   Iliad.SwazooIliad startOn: 4080
>
> but still...

... it's totally my fault. I confused my system by trying to
stop swazoo from within a callback action being handled
by swazoo.

The results are interesting: I still have a listening port open,
but no response handlers seem to be active any more.

I'll file this under "then don't do it" and implement a "quit"
link by some other clever contraption.

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: SwazooIliad stop

Stefan Schmiedl
On Sun, 12 Jul 2009 18:41:15 +0200
Stefan Schmiedl <[hidden email]> wrote:

> I'll file this under "then don't do it" and implement a "quit"
> link by some other clever contraption.

in this case:

  quit [
    <category: 'actions'>
    [ ( Delay forSeconds: 5 ) wait. ObjectMemory snapshot; quit ] fork.
    self redirectToLocal: 'shutdown'.
  ]

s.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk