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
1
vote
1 answer

Data minification using Ruby

I'm playing with ruby and I noticed that the output wasn't minified when rendering my ruby script ... Files in my www folder are minified when displaying them... not my ruby script. It is the normal behavior ? Actually it's not only ruby scripts but…
solisoft
  • 669
  • 4
  • 12
1
vote
1 answer

G-WAN behave strangely when using mongoDB

I'm working with G-WAN & mongoDB and I have a strange behavior. When I display my page, it looks ok. If I refresh it it will stop working after 5 or 6 refresh. Here the code //…
solisoft
  • 669
  • 4
  • 12
1
vote
1 answer

With GWan's key/value store can more than one index be created for an entity?

For GWan's key value store can I create more than one index for a given single type of entity? Also can I query more than one index at once such as find a item with age > 5 and height > 100 if I indexed age and height.
Phil
  • 46,436
  • 33
  • 110
  • 175
1
vote
1 answer

(bash script) error running g-wan

Every time I try to run g-wan I get the following error: ./gwan: 1:Syntax error: word unexpected (expecting ")") I have tried both 32 and 64 bit versions. I am running it in ubuntu 11 and I have installed all the necessary packages, any idea what…
user1324017
  • 31
  • 1
  • 3
1
vote
2 answers

Running sinatra using G-WAN

Is it possible to use Sinatra using G-wan web server? if it possible how to do it?
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
1
vote
1 answer

G-WAN All CSP's Respond with Content Type of text/plain

[[ [Solved] The latest update of G-WAN has fixed this default MIME type. ]] G-WAN 4.3.11 is returning all of my csp files as type "text/plain". How can this be fixed?! At the moment it is hardly anything more than a static file server. E.g.,…
kmatheny
  • 4,042
  • 1
  • 19
  • 12
1
vote
1 answer

X-Forwarded-For in Gwan

I have read through the documentation (both API and Manual), and haven't seem to find any support by gwan for the X-Forwarded-For header. The only thing I have found that could be related was REMOTE_BIN_ADDR. I know to get a client IP you can use…
John-Alan
  • 171
  • 7
1
vote
1 answer

gwan -r dosn't read newest file

I've been using Gwan v4.1.18 and for development purposes I often use ./gwan -r [somefile] However often I find that when I update the file I am running the updates are found when I execute the above line. Is this some sort of weird caching being…
John-Alan
  • 171
  • 7
1
vote
2 answers

gwan redirection after create cookie

For my form validation page, I'd like to create a cookie and be redirected to another page but that doesn't work. Redirection prevents the creation of cookie. Do you have any solution ?
John S
  • 231
  • 3
  • 11
1
vote
2 answers

gwan REQ_ENTITY or request string

with gwan server, is it possible to get the request string... ie. the arguments. given http://myserver.com/main.cpp?arg1=one&arg2=two im looking to obtain a char string arg1=one&arg2=two according to docs, it should be REQ_ENTITY, // char …
Gabe Rainbow
  • 3,658
  • 4
  • 32
  • 42
1
vote
2 answers

Persistence and mongoDB

I'm trying to persit my mongoDB connection like that : mongo **ptr = (mongo**)get_env(argv, US_VHOST_DATA); if(!ptr[0]) { mongo_replica_set_init( conn, "cluster" ); mongo_replica_set_add_seed( conn, "mongo1.mongood.com", 27017 ); …
solisoft
  • 669
  • 4
  • 12
1
vote
2 answers

How to set http response header when php is used with g-wan

I add the header function in the hello.php sample, as below:
Hello, PHP!
current working directory: ".getcwd()); exit(200); // return an HTTP code (200:'OK') ?> but there…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
1
vote
2 answers

Gwan, failed to map segment

I am having trouble with Gwan, I have used is successfully without hiccup on several machines but having trouble with my current machine CentOS 6.3 64bit Final, gwan version 3.12.26, glibc version 2.12 (stable) from gwan. Whenever I try and start…
John-Alan
  • 171
  • 7
1
vote
1 answer

How to disable G-WAN servlet internal cache?

gwan version: 3.12.26 servlet type: C and Perl problem: gwan internal cache make request not re-read the script test: create 'log' dir : [bash]# mkdir -p /dev/shm/random-c [bash]# chmod 777 /dev/shm/random-c create…
isenkSaja
  • 21
  • 3
1
vote
2 answers

g-wan: building library outside of /csp, and g++ compilation problems

I am giving Gwan a whirl. Having made it through example code, I started a small project with more than one source file. I now have two problems: I got a linking error at server startup: Linking main.cpp: undefined symbol:…
Gabe Rainbow
  • 3,658
  • 4
  • 32
  • 42