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

How to allow preformatted text being served by g-wan?

By default G-WAN strips white spaces from HTML files to minimize the file. What's the best way to allow pre-formatted text defined by
 tag to get through?
@Richard Heath
Interesting -- I'm using a vanilla installation of G-Wan with the 
alex
  • 774
  • 5
  • 12
3
votes
1 answer

G-wan C Sha1 hashing

I'm having a small issue getting the sha1 function to work in G-WAN. Basically i have the string i want to hash, I'm new to C in general so any pointers would be great. This is the string im trying to sha1 hash, I'v tried several approaches but I'm…
tomek
  • 35
  • 3
3
votes
1 answer

Change site configuration without restarting G-WAN

I'm looking at hosting a number of small, static websites and have been looking at a few alternatives including G-WAN. At the moment I'm just trying to get a feel for how well each server suits my needs before picking one. G-WAN seems to do exactly…
CJM
  • 33
  • 2
2
votes
4 answers

G-WAN analogs

Today I found web-framework written in ANSI C - G-WAN. I like it, but it is not open source and maintained only by one developer. I am afraid of using it in production. Do you know any more serious frameworks, that allow to write web services in…
Nikolay Fominyh
  • 8,946
  • 8
  • 66
  • 102
2
votes
4 answers

An executable that doesn't require any library, even libc?

[root@ gwan]# file gwan gwan: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, stripped [root@ gwan]# ldd gwan not a dynamic executable [root@ gwan]# du -csh gwan 208K gwan 208K total How does gwan do…
Je Rog
  • 5,675
  • 8
  • 39
  • 47
2
votes
1 answer

How to write complex application to be used under G-WAN

I want to know the good practices when developing applications utilizing GWAN. I have starter small app (but crucial part of big project) which will be utilizing C++ OOP. At least that means I have classes to get initialized on HTTP requests. How I…
kanevbgbe
  • 113
  • 5
  • 12
2
votes
1 answer

How to configure G-WAN to use php-fpm?

As title said, how to configure G-WAN to use php-fpm? Currently using lighttpd with php-fpm. Heard G-WAN maybe even lighter, want to give it a try. But after downloading the package and have it running, doesn't seems to be able to find any doc about…
John Siu
  • 5,056
  • 2
  • 26
  • 47
2
votes
1 answer

GWAN as embeded server for spring boot

not sure if this is possible but was wondering if its possible to embed GWAN in spring boot app (like tomcat/jetty etc.) are. and how so?
user697697
  • 3,327
  • 3
  • 18
  • 12
2
votes
1 answer

Replace url in html files on load balance basing on geolocation?

I have a HTTP web server providing static html pages. Within the page, it loads images & css from a fixed domain like: Actually there are several different domains serving the same files. For…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
2
votes
1 answer

How to remove the "?" character from g-wan URIs

I have checked cache.c <- totally clueless what it is doing or how to have pretty permalinks to servlet calls. Update: OK, I know what the above does, but the problem is you have to call the above script first before you can access it as permalink.…
stashfree
  • 655
  • 6
  • 22
2
votes
2 answers

Keep MySQL connection in static variable in function (avoid global variables) in C

I'm creating a MySQL layer in C (to be run in GWAN) and are trying to avoid to keep the MySQL connection in a global variable. My simplified code looks like this: #include const char *DB_HOST = "localhost"; const char *DB_USER…
AxAn
  • 143
  • 12
2
votes
1 answer

GWAN Key-Value persistent store

I want to use the GWAN API Key-Value to record and read a number of data (in a multi-threaded way). The problem is that my recordings are only available on the current page and therefore can not be used on my other pages. Can you show me an example…
John S
  • 231
  • 3
  • 11
2
votes
1 answer

Using MySQL with G-WAN

I tried to use mysql-connector-c++ with G-WAN 4.3.14 , here's my original source code: //#define USE_GWAN #include #include #include #include using namespace std; #ifdef USE_GWAN #include…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
2
votes
1 answer

Which Linux distribution is the preferred one for running a gwan server?

If I could choose from CentOS, Ubuntu, Debian, Gentoo or Fedora for running a G-wan server. Which one would you recommend as best? Thanks.
Sasho
  • 3,532
  • 1
  • 31
  • 30
2
votes
1 answer

Gwan load balancer setup

I'm considering to use Gwan for a backend game server. Although Gwan can handle lot of requests, I would want to make it scalable automatically. Gwan has elastic load balancer. Are there examples on how should that be setup at code/deployment?
Robin
  • 451
  • 3
  • 14
1 2
3
18 19