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
0
votes
1 answer

Reading a POST payload from a G-Wan C Script

I understand that reading actual query string params is made easy with the get_arg function. However, I am not seeing anything in the examples or documentation that will let me read the POST payload. In my case, it's a JSON encoded string. Parsing…
Mike Keen
  • 171
  • 1
  • 4
  • 12
0
votes
1 answer

gwan v7.12.2- files in www folder can't be visited when with query string

for example: http://123.456.789.123/page.html, 200 OK http://123.456.789.123/page.html?, 404 not found. http://123.456.789.123/page.html?debug, 404 not found, too.
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

gwan v7.12.2 mime type handlers not work

I made a handler html.c in folder of handlers #include "gwan.h" // G-WAN exported functions #include int main(int argc, char *argv[ ]) { char header[ ] = //"Content-Type:text/html; charset=UTF-8\r\n" …
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

What's wrong of my permission settings in G-WAN v7.12.2 - cannot visit the pages in www, but scripts in csp ok

My file permission setting as following: All files and directories rwxrwxr-x kklou kklou, including www and csp having the same settings, but only the scripts in csp can be visited. I did study the page http://gwan.com/faq#404, but still can't solve…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
3 answers

G-WAN, NodeJS, and Streaming

Does G-WAN spin up a new NodeJS instance for every user request? (i.e. if you're using JavaScript for a servlet) For instance, if 100 users request an action at the same time that's handled by a specific script. My primary question goes with…
Ohenepee Peps
  • 157
  • 1
  • 12
0
votes
1 answer

G-WAN 7.12.2 segfault when not ran as a daemon

I have ran a fresh install of latest G-Wan as not daemon (e.g. ./gwan). I request some files (also tried nonexistant files) - all OK. I request /? (no file name, just '?') and I get a segfault and server dies. This is repeatable every time. The…
Sasho
  • 3,532
  • 1
  • 31
  • 30
0
votes
1 answer

G-Wan v 7.12.2 how to `completely remove the "Server: G-WAN"` and more

I've downloaded the latest G-WAN. I installed and ran successfully ph7. How (what var should I use) if I don't want to reveal the server's identity? I couldn't find LG_PH7 in the gwan.h file, is it the LG_PLI? With the old version (4.x) I had a .c…
Sasho
  • 3,532
  • 1
  • 31
  • 30
0
votes
2 answers

Where is the configuration file in g-wan?

Where is the configuration file (init.d) in g-wan. Also how do I get rid of the '?' In the url to run php or c script ( I think you need to change this in the configure)?
matt
  • 337
  • 4
  • 14
0
votes
2 answers

Gwan or nginx for php

I have large photo file and would like to use gwan as it fast. Is there any performance benefits in comparison to nginx fast-cgi. Does gwan fast at timd to first byte? Is it faster at connecting time? Is commputing time faster? Is throughput…
matt
  • 337
  • 4
  • 14
0
votes
1 answer

Effective subscription to data feeds

How to effectively implement subscription mechanism in G-Wan? Suppose, I want to make g-wan aggregate data from various tickers and farther process it. And, obviously, every feed provides the data in its unique format. The straightforward way would…
Sergei
  • 11
  • 2
0
votes
1 answer

g-wan error unknown SIGSEGV

I have problem using g-wan. When try to download large file, I got this error message : Signal : 11:Unknown SIGSEGV problem Signal src : 128:. errno : 0 Thread : 1 Code Pointer: 0000004081a8 (module:gwan, function:??,…
I-Coder
  • 3
  • 1
  • 1
0
votes
1 answer

G-Wan perl header for gif file types

I've created a perl script c.pl print "Content-type: image/gif\n\n"; ... and ... exit 200; output is : Content-type: image/gif GIF89an ... this is wrong. it seems to generate output of Content-type: text/html prior... how can I make it output…
stashfree
  • 655
  • 6
  • 22
0
votes
1 answer

Running gwan on raspberry pi?

Tried the 32bit gwan on raspberry pi but got cannot execute binary file. Any ways to run on wheeze raspberry pi? Will be great if we can do test on it.
stashfree
  • 655
  • 6
  • 22
0
votes
1 answer

Changing the query character has no effect

I have sent 2 servlet requests to my G-WAN server: domain.com/?cspA 127.0.0.8:8888/?cspB By changing query character to '#', I want to temporay block all servlets. After a while, I want to switch back to '?'. But the servlet cspB on…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

wake_up() with WK_MS won't work

I have changed the ms delay to 3000 in example stream2.c, on line 47, as seen below: // ------------------------------------------------------------ // tell G-WAN when to run this script again (for the same request) //…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16