Changeset 1092
- Timestamp:
- 06/16/08 21:36:22 (3 months ago)
- Files:
-
- trunk/mango/net/http/server/HttpBridge.d (modified) (1 diff)
- trunk/mango/net/http/server/HttpServer.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/mango/net/http/server/HttpBridge.d
r1039 r1092 93 93 94 94 // close and destroy this conduit (socket) 95 scope (exit)96 conduit.detach;95 //scope (exit) 96 //conduit.detach; 97 97 98 98 // reset the (probably overridden) input and output trunk/mango/net/http/server/HttpServer.d
r1083 r1092 40 40 { 41 41 private ServiceProvider provider; 42 private bool close = true; 42 43 43 44 /********************************************************************** … … 83 84 { 84 85 return "http"; 86 } 87 88 /********************************************************************** 89 90 Configure whether each connection is detached after being 91 serviced. The default behaviour is to close the connection 92 93 **********************************************************************/ 94 95 void detach (bool yes) 96 { 97 this.close = yes; 85 98 } 86 99 … … 138 151 ServiceBridge bridge; 139 152 153 scope (exit) 154 if (close) 155 conduit.detach; 156 140 157 // we know what this is because we created it (above) 141 158 thread = cast(HttpThread) st;
