Show
Ignore:
Timestamp:
07/08/07 11:30:43 (1 year ago)
Author:
xammy
Message:

Many bugfixes - now it basically works!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/VerboseApp.d

    r12 r13  
    2828        synchronized 
    2929            counter++; 
    30         stdout ("<h1> Hello world </h1><br>") ("Request #") (counter) ("<br><br>\n"); 
     30        stdout ("<h1> Hello world </h1><br>") ("Request #") (counter) (", Thread #") (id) ("<br><br>\n"); 
    3131 
    3232        // Write IP 
     
    4747            char[10] string; 
    4848            int rd = request.stdin.read(string); 
    49             stdout(string[0 .. rd]); 
     49            if (rd > 0) 
     50                stdout(string[0 .. rd]); 
    5051            if (rd != string.length) 
    5152            { 
     
    7374    return FastCGIApplication.loop!(MyApp) (connection, true, 10); 
    7475} 
     76