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

mongodb c api no insert no error

I am trying to connect to mongodb and insert GET parameters, using G-WAN and mongodb's C driver, i successfully connecting to mongodb, but i havent succeeded any data inserts. I am using the code…
cia
  • 87
  • 1
  • 5
1
vote
1 answer

How does the G-WAN pricing/licensing system work?

I've recently come across a portable HTTP Server called G-WAN that somehow manages to out perform all other HTTP servers in both speed and memory consumption by a factor of four. Now I'm not sure at all how it manages to achieve this, but its…
matsko
  • 21,895
  • 21
  • 102
  • 144
1
vote
2 answers

Using G-WAN for Web services

I am considering to use G-WAN to serve web services dedicated to a mobile application (android, iOS) due to a potential high concurrency (number of users, number of requests). The services will be interfaced to a PostgreSQL server, so I would like…
Jerec TheSith
  • 1,932
  • 4
  • 32
  • 41
1
vote
2 answers

G-WAN - How to return Status Code: 200 OK if request URL = 541+ characters?

I'm using G-WAN Web App. Server v7.12.6. How to return valid Status Code: 200 OK if request URL has a total of 541+ characters including the 25 parameters? ajaxGet(URL, method) where method is GET or PUT (same result) Request…
1
vote
2 answers

Can G-WAN servlets deploy ReactJS single-page-apps to browsers?

I'm developing several React SPAs and have not yet decided how the apps will be packaged/deployed/hosted. Most of my experience is with back-end development, so I am not very familiar with methods for packaging and deploying SPAs. I have some other…
Kenigmatic
  • 448
  • 6
  • 16
1
vote
1 answer

G-WAN C function xbuf_trunclen() and xbuf_truncptr()

I would like to use the xbuf_trunclen() and xbuf_truncptr() functions to cut my buffer but the functions do not seem to work. Here's an example with an example running via char pointer: char *string = (char*)strdup("---Boundary"); string +=…
John S
  • 231
  • 3
  • 11
1
vote
3 answers

Linking another library from C-library in gwan/libraries results in "undefined symbol" error

I'm trying to use a standard library libuuid inside my C-library file my_uuid.c: gwan/libraries/my_uuid.c: #include #pragma link "uuid" void my_uuid_generate(uuid_t uuid) { uuid_generate(uuid); } gwan/init.c: #include…
soundwave
  • 21
  • 3
1
vote
1 answer

kv_do() not working as expected

This is in my init.c: server_data_t **data = (server_data_t**)get_env(argv, US_SERVER_DATA); data[0] = (server_data_t*)calloc(1, sizeof(server_data_t)); kv_t *channels = &data[0]->channels; kv_t *users = &data[0]->users; kv_init(channels,…
zendo
  • 11
  • 1
1
vote
1 answer

Why get_env(US_VHOST_DATA) is NULL on first invocation of main() in handlers/main.c

I'm using G-Wan v4.12.31. Does anybody know why get_env(US_VHOST_DATA) returns NULL on first invocation of main() in handlers/main.c? int init(int argc, char *argv[]) { u32 *states = (u32 *)get_env(argv, US_HANDLER_STATES); *states = (1 <<…
soundwave
  • 21
  • 3
1
vote
1 answer

G-WAN for Rapsberry Pi3?

This question is for the G-WAN development team. I know that you've discontinued G-WAN 32-bit due to the very low demand of G-WAN for the Linux 32-bit platform. But, with regard to both the worldwide success of the Rapsberry low cost computer and…
PCKB
  • 107
  • 1
  • 8
1
vote
1 answer

Where to place the robots.txt file with G-WAN?

I want to disallow robots from crawling the csp folder and plan to use the following robots.txt file: User-agent: * Disallow: /csp So, my question is double: Is the syntax correct for G-WAN? With G-WAN, where should I place this file?
PCKB
  • 107
  • 1
  • 8
1
vote
1 answer

How to add a new language (compiler) to G-WAN?

Is it possible (and if yes, how) to add new compiled languages to G-WAN such as Free Basic (fbc) and Basic 4 QT (Q7BCompiler) which both provide complete IDE and build Linux executables? TIA.
Fnux
  • 416
  • 1
  • 4
  • 9
1
vote
1 answer

Glitches with report.c and report.java servlets on gwan 7.12.6

This is a question sent to the gwan development folks. Using the last gwan release 7.12.6 (with my Mint 17.3 system), both the report.c and report.java servlets don't display the System Uptime information. However, using the exactly same report.c…
Paul
  • 21
  • 3
1
vote
1 answer

What are the exit status codes for the G-WAN executable?

I'm trying to serve a big number of small files with G-WAN (version 4.3.14, started with sudo on 64-bit Ubuntu 14.04.3). I start hammering it with requests over a single connection using wget to provide base URL and a file with a list of the URL…
1
vote
1 answer

How do you include a HTML file in c

I am currently using g-wan for myweb server and would like to know How do you merger multiple HTML files, in c for HTML? In php I t would be How would you do this in c for gwan?
matt
  • 337
  • 4
  • 14