[Q] Swazoo + GST Problem on Windows

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

[Q] Swazoo + GST Problem on Windows

Chun, Sungjin
My previous report on Swazoo + GST on Windows is half correct.
When I run gst.exe -f GST.st where GST.st contains simple example
in the wiki (I've attached it), the system CPU load be 100%. When I
press Control+C to stop(as Paolo requested). following trace back
is emitted.

C:GST>bingst.exe -f C:UsersSungjinDocumentsOpenPiczzaGST.st
Started
C:UsersSungjinDocumentsOpenPiczzaGST.st:23: Interrupt
(ip 6)ProcessorScheduler>>#yield
(ip 10)[] in Delay class>>#initialize
(ip 52)[] in Process>>#onBlock:at:suspend:
(ip 10)<unwind> BlockClosure>>#on:do:
(ip 14)[] in Process>>#onBlock:at:suspend:
(ip 2)<unwind> BlockClosure>>#ensure:
(ip 10)[] in Process>>#onBlock:at:suspend:
(ip 46)[] in BlockClosure>>#asContext:
(ip 14)BlockContext class>>#fromClosure:parent:

I hope this could be useful for debugging... Oh and Ah, I'm using smalltalk-3.0b.tar.gz
without jit. After building, when I run make check, it seems that it takes forever to finish
integermath testing(I'm not using gmp).


Thanks in advance.
PackageLoader fileInPackage: 'Swazoo'.

Swazoo.Resource subclass: MyResource [
  answerTo: aRequest [
    | response |
    response := Swazoo.HTTPResponse ok.
    response entity: '<h1>Hello</h1>'.
    ^ response
  ]
]

site := Swazoo.Site new name: 'test'.
site host: 'localhost' ip: '127.0.0.1' port: 8888.

resource := MyResource new uriPattern: 'helloworld.html'.
composite := Swazoo.CompositeResource new uriPattern: '/'.
composite addResource: resource.
site addResource: composite.

Swazoo.SwazooServer singleton addSite: site.
site start.
Transcript show: 'Started'; cr.
Processor activeProcess suspend.


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