Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2023 14:26:27 +0200
From:      Ivan Radovanovic <radovanovic@gmail.com>
To:        freebsd-mono@freebsd.org
Subject:   Re: How to test www/xsp port
Message-ID:  <b9ef3d67-0d55-3c81-b9ae-5c16b2ebd593@gmail.com>
In-Reply-To: <7195c088-7b83-6427-39e3-ce089ebd3cde@FreeBSD.org>
References:  <7195c088-7b83-6427-39e3-ce089ebd3cde@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is some concurrency problem (it happens only on xsp startup) - 
depending on system it can happen quite often or pretty much never.

Workaround is to try to run xsp again, or if you want to use it as web 
server for real try to run it by some process manager which would 
automatically restart it if it crashes (same goes for fastcgi server 
from mono project)

On 09/08/2023 14:21, Rodrigo Osorio wrote:
> Hi,
>
> I was updating www/xsp(PR272997)[1], a Mono based
> web server, and to test the port I run the samples
> provided in the package as described in the INSTALL[2]
> file.
>
> Running this code causes a server crash, which
> looks like a Mono issue. I'm not a Mono expert
> so I wish someone can take a look ant tell me
> if this port still usable on FreeBSD.
>
> I try to run the same test with the current xsp
> version, and I got the same error.
>
> To reproduce the crash start the serven the server
> and run the command: fetch "http://127.0.0.1:9000/"
>
> ----
> % (cd /usr/local/lib/xsp/test && xsp4)
> xsp4
> Listening on address: 0.0.0.0
> Root directory: /usr/local/lib/xsp/test
> Listening on port: 9000 (non-secure)
> Hit Return to stop the server.
> System.IO.IOException: kevent() error at initial event registration, 
> error code = '9'
>   at System.IO.KqueueMonitor.Start () [0x0009f] in 
> <b3922b7d60404fa9ae645f1fb97f5b6b>:0
>   at System.IO.KeventWatcher.StartDispatching 
> (System.IO.FileSystemWatcher fsw) [0x00033] in 
> <b3922b7d60404fa9ae645f1fb97f5b6b>:0
>   at System.IO.FileSystemWatcher.Start () [0x00000] in 
> <b3922b7d60404fa9ae645f1fb97f5b6b>:0
>   at System.IO.FileSystemWatcher.set_IncludeSubdirectories 
> (System.Boolean value) [0x00022] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0
>   at (wrapper remoting-invoke-with-check) 
> System.IO.FileSystemWatcher.set_IncludeSubdirectories(bool)
>   at System.Web.HttpApplicationFactory.WatchLocationForRestart 
> (System.String virtualPath, System.String filter, System.Boolean 
> watchSubdirs) [0x00056] in <d6b4a86d64cf4f0ba7001bead8cf207f>:0
>   at System.Web.HttpApplicationFactory+<>c.<InitType>b__38_0 
> (System.Object <p0>) [0x00000] in <d6b4a86d64cf4f0ba7001bead8cf207f>:0
> ----
>
> Regards
> -- rodrigo
>
> [1]https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272997
> [2] https://github.com/mono/xsp/blob/main/INSTALL
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9ef3d67-0d55-3c81-b9ae-5c16b2ebd593>