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

Run latest version of G-WAN on windows

I see some comments in G-WAN website about discontinuing Windows version since Sep 9, 2009. Now, I want to run the latest version of G-WAN web server in Windows, how can I do that?
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
1
vote
1 answer

How to write a Rack adapter with C

I would like to see if it is possible to exchange data between g-wan server and ruby but I need to implement a Rack adapter. I could write one in Ruby, but I need to use C because g-wan API is in C (or Java). Is there any documentation to do that?…
rtacconi
  • 14,317
  • 20
  • 66
  • 84
0
votes
0 answers

How to configure ANSI C toolchain on Fedora 36 so G-WAN can compile and run C scripts?

I have unpacked gwan server, put a basic hello world file in a listener and tried to run it, however gwan won't run C scripts and claims that "ANSI C" is not installed: $ ./gwan allowed sockets: 1024 ('sudo ./gwan' to let G-WAN use more…
Anastazy
  • 4,624
  • 2
  • 13
  • 22
0
votes
1 answer

multiple definition of main() function with gcc compilation in c

I'm looking for an efficient (fast and secure) method to communicate multiple scripts (and their associated main function ()) to each other. A bit like the principle of the G-WAN project which uses a launcher (./gwan) to read / load / compile…
John S
  • 231
  • 3
  • 11
0
votes
2 answers

Using C# dll with G-WAN

My goal here is to apply create scripts that runs on G-WAN and connects to Azure Storage. So to achieve this, I am first trying out how to link dll to C# script in G-WAN and I encountered this error Error:…
0
votes
1 answer

How to add HTTP/2 in G-WAN

I would like to know if it's possible to make G-WAN 100% compatible with HTTP/2 by using for example the solution nghttp2 (https://nghttp2.org)
John S
  • 231
  • 3
  • 11
0
votes
1 answer

G-WAN: adding .jar application to CLASSPATH: "try catch not catching exception"

I'm trying to use to G-WAN webserver. So I added a ".jar" application to CLASSPATH in order to call it from java servlet. The code is running, but it is unable to catch the exception, and the application crashes. Below you can find the…
0
votes
1 answer

gwan v7.12.6 cannot show index.html

Visit 127.0.0.1/index.html responses 404 not found. It is not because of file permission, since I followed the steps in gwan official site to set up the file permissions. In the error.log, it show: [client 127.0.0.1] 404 "GET…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

G-WAN v.7.12.6 content type handlers not work

I made a html.c script as below, in .../csp folder. It should output the additional headers with the default headers. But, actually it output the default headers only. What have I done wrong? Did I miss anything? Or, is it a bug in G-WAN? #include…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

kv_do infine loop when when kv has more than 1 item

I have tried to use kv_t to store some data without success. I have also tried to the examples forum.c & kv.c. forum.c hangs when trying to create the second Forum thread while kv.c crashes.s. When I have 1 item added to the kv, kv_do will succeed.…
DcCarter
  • 1
  • 1
0
votes
1 answer

G-WAN v7.12.6 can't visit the static contents

G-WAN out-of-box is running no problem with the dynamic contents but can't visit the static contents. I ran G-WAN with kk user(not root, no sudo). All files and directories are of kk user/group. I installed it in localhost. When I typed…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

G-WAN v7.12.6 is not listening

I was using G-WAN v7.12.2, everything is OK. But when I changed to G-WAN v7.12.6, it started without error but I can't visit my site. When I use Linux command "sudo netstat -tnlp" to check, there was no G-WAN listening to any port. I changed back…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16
0
votes
1 answer

To run G-WAN, you must fix the error(s) or remove this Servlet

I am using gwan 7.12.6 on my Ubuntu Server 14.04.4 LTS and I start it with the command sudo service gwan test that is equivalent to the command sudo ./gwan (so not in deamon mode). Then, all the servlets compile without any error, but kv_bench.c and…
Phil-26
  • 9
  • 1
0
votes
3 answers

Why does report.c say I'm listening on port 80_80 and have less Cores than available?

Environment I'm running G-WAN on Ubuntu 14.04.3 SERVER LTS (3.19.0-49) 64-bit with a CPU Intel Core i7-3610QM using the TCP port 80. There's the 0.0.0.0:80 folder but no 0.0.0.0:8080 nor any 0.0.0.0:xyz other folder. Why do both the report.c and…
Phil-26
  • 9
  • 1
0
votes
2 answers

xbuf_repl is not replacing all occurences

As g-wan documented, xbuf_repl is replacing all occurrences. But my installed g-wan, running the following code, only replaced the first occurrence of the matched. #include "gwan.h" int main(int argc, char* argv[]){ xbuf_t *reply =…
k.k. lou
  • 1,805
  • 2
  • 13
  • 16