Questions tagged [g-wan]

G-WAN is a web server with scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby and Scala.

G-WAN is a (freeware) web application server first published in 2009. The gwan.com site presents the G-WAN API, answers FAQs and also publishes many benchmarks in various programming languages.

G-WAN supports scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby, and Scala (click on a language link to show a benchmark).

An old performance comparison with static servers was done by an academic: http://nbonvin.wordpress.com/2011/03/24/serving-small-static-files-which-server-to-use/

A more recent benchmark (on 1/2/4/8 CPU Cores) - also made by an independent third-party - compares Apache 2.2, Apache 2.4, Nginx, Lighttpd, Varnish, Litespeed, Cherokee and G-WAN: http://www.rootusers.com/web-server-performance-benchmark/

274 questions
2
votes
1 answer

use python for restful server under gwan

How to use python within g-wan? Provide a main method as in the c 'servlet' Further is it possible to run python bottle or use its nice PUT GET POST handler syntax within said python Aka @get(/classes// def function(classname =…
Gabe Rainbow
  • 3,658
  • 4
  • 32
  • 42
2
votes
2 answers

How to do phpinfo on Gwan and php

On cent OS 6.4 , GWAN web/http server and php is installed. created file info.php in /csp gives header HTTP/1.0 200 OK => Server => G-WAN Date => Thu, 05 Sep 2013 08:21:11 GMT Last-Modified => Thu, 05 Sep 2013…
user1642018
2
votes
1 answer

G-WAN with valgrind? Alternatives?

G-WAN is a convenient way to run C code on the web out-of-the-box, but for me it does not work with valgrind. (Running valgrind ./gwan there is a error message Inconsistency detected by ld.so: rtld.c: 1292: dl_main: Assertion…
ArtemGr
  • 11,684
  • 3
  • 52
  • 85
2
votes
2 answers

GWAN terminating under load

I have a web app that needs to be a restful interface. So I have a connection handler that tries to change the inbound request into something that gwan can use. Every connection to this service is the same, so I am doing a replace on every…
2
votes
2 answers

How do I run a Sinatra application on G-WAN?

I'm trying to write a Ruby web application and I want to use the functionality offered by Sinatra. I used this code: require 'rubygems' require 'sinatra' get '/' do 'Hello, world!' end I typed localhost:8080/?hello.rb in my browser…
Dragos C.
  • 621
  • 2
  • 7
  • 15
2
votes
1 answer

How to hold data structures in memory G-wan with Java / Scala

I am looking at Gwan as a higher performance way to run our Scala application. Our use-case involves keeping a good amount of data in memory using Scala data structures. This is a bit more complex than a simple hashmap so I would want to avoid…
Lerchmo
  • 189
  • 1
  • 12
2
votes
1 answer

gwan not re-compiling java files

I tested against the standard hello.java and hello.c that comes with the gwan server running on Ubuntu 12.04 server. G-WAN 4.3.1 64-bit (Mar 1 2013 17:36:39) Once I run gwan with sudo ./gwan -d I also noticed the same behavior running without the…
sday
  • 1,041
  • 14
  • 22
2
votes
2 answers

Getting G-WAN to work with Mono

I have followed the instructions on the G-WAN site FAQ and read through the manual, but I can not get G-WAN to "see" the Mono installation on my Debian 6 (x64) setup. I have tried with the recommended Mono version (3.0.2) and the latest(3.0.4). I am…
James
  • 439
  • 5
  • 9
2
votes
2 answers

Gwan handler states

I'm trying to implement a restful handler for my scripts that replaces the / with & so I can turn url's like this: ?script.c&things into this: ?script/things. Currently I just have a test script that is based of this post by Gil. //…
John-Alan
  • 171
  • 7
2
votes
2 answers

Custom 404 response for GWAN

When people request a servlet that is not found on csp folder it will show a "404 Not Found" Response Not Found The requested URL was not found on this server. is there a way we can check a servlet exists or not, to create custom 404 page?
csw
  • 125
  • 6
2
votes
1 answer

G-WAN 3.12.26 64-bit add duplicate http header

I use gwan for image generation, so I need to set correct content type, but G-WAN 3.12.26 after some load adds its own header with content type text/html and returns page with 2 http headers. How to reproduce this: use setheaders.c servlet from gwan…
Tom
  • 53
  • 4
2
votes
1 answer

G-wan, access to byte range header request

I am trying to access to the byte range header request made to a G-wan server, the thing is that I always obtain "0" as a value from the h_range_from attribute int the http_t struct. http_t *head = (http_t*)get_env(argv,…
2
votes
2 answers

GWAN unescape_html()

Code snip: U8 test[20] = "+45%201234%205678"; printf("\n%s\n",test); unescape_html(test); printf("%s\n",test); Output +45%201234%205678 45 1234 5678 Where did my "+" sign go? Error or feature?
H.J.
  • 25
  • 4
2
votes
2 answers

How does Go run on G-WAN?

I read that G-WAN supports Go. As far as I know, Go can only produce statically linked executables. So how does Go work on G-WAN, through CGI/FastCGI? Or simply invoking the executable with the raw request on stdin? I would love to be able to…
thwd
  • 23,956
  • 8
  • 74
  • 108
2
votes
2 answers

g-wan not updating dependencies of servlets

When I modify hello.c included with g-wan to include a simple header with #define TEST_VALUE 50 and output it in the hello.c file I noticed that a change to the header file did not trigger an update for g-wan to update the servlet. So if I change…
sday
  • 1,041
  • 14
  • 22