You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: More.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Since v0.2.5, nginx-clojure provides a union form of [hijack API][] to work with
101
101
102
102
### Hijack the Request
103
103
104
-
We can hijack the request to get a http server channel to send some messages later. After hijacking the return result from ring handler, will be ignored so we can finely control when & what to be sent to the client.
104
+
We can hijack the request to get a http server channel to send some messages later. After hijacking the return result from ring handler, it will be ignored so we can finely control when & what to be sent to the client.
105
105
106
106
For Clojure
107
107
@@ -274,7 +274,7 @@ Here's an example which is retrieving content from mirror.bit.edu.cn:8080 and se
274
274
3.7 About Logging
275
275
-----------------
276
276
277
-
For logging with nginx-clojure there are several ways
277
+
For logging with nginx-clojure there are several ways:
278
278
279
279
1. Using System.err.print/println will write a log to nginx error.log. This way is simplest but logging information will be mixed if you have more than one nginx worker.
280
280
2. Using clojure tools.logging + logback or slf4j + logback, we can get one log file per nginx worker.
@@ -308,7 +308,7 @@ in logback.xml
308
308
</appender>
309
309
```
310
310
311
-
Then we'll get log files whose name is just like myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.
311
+
Then we'll generate log files named in this convention: myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.
Copy file name to clipboardExpand all lines: More.md.html
+3-3
Original file line number
Diff line number
Diff line change
@@ -258,7 +258,7 @@ <h2>
258
258
<h2>
259
259
<aid="user-content-37--about-logging" class="anchor" href="#37--about-logging" aria-hidden="true"><spanaria-hidden="true" class="octicon octicon-link"></span></a>3.7 About Logging</h2>
260
260
261
-
<p>For logging with nginx-clojure there are several ways</p>
261
+
<p>For logging with nginx-clojure there are several ways:</p>
262
262
263
263
<ol>
264
264
<li>Using System.err.print/println will write a log to nginx error.log. This way is simplest but logging information will be mixed if you have more than one nginx worker.</li>
<p>Then we'll get log files whose name is just like myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.</p>
291
+
<p>Then we'll generate log files named in this convention: myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.</p>
292
292
293
293
<h2>
294
294
<aid="user-content-38--sever-side-websocket" class="anchor" href="#38--sever-side-websocket" aria-hidden="true"><spanaria-hidden="true" class="octicon octicon-link"></span></a>3.8 Sever Side WebSocket</h2>
<p>Because a JVM instance will be embeded into every Nginx worker process, if there are more than one Nginx worker prcocesses then there will be more than one JVM instances.
668
-
So if we want to have synchronized session information we cannot use the default tomcat session manger. Instead we may consider using one of the following: </p>
668
+
So if we want to have synchronized session information we cannot use the default tomcat session manger. Instead we may consider using one of the following: </p>
669
669
670
670
<ol>
671
671
<li>Cookie based Session Store viz. storing all session attribute information into cookies.</li>
Copy file name to clipboardExpand all lines: more.html
+2-2
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,7 @@ <h2>
360
360
<h2>
361
361
<aid="user-content-37--about-logging" class="anchor" href="#37--about-logging" aria-hidden="true"><spanaria-hidden="true" class="octicon octicon-link"></span></a>3.7 About Logging</h2>
362
362
363
-
<p>For logging with nginx-clojure there are several ways</p>
363
+
<p>For logging with nginx-clojure there are several ways:</p>
364
364
365
365
<ol>
366
366
<li>Using System.err.print/println will write a log to nginx error.log. This way is simplest but logging information will be mixed if you have more than one nginx worker.</li>
<p>Then we'll get log files whose name is just like myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.</p>
393
+
<p>Then we'll generate log files named in this convention: myapp.2014-09-12-1.log, myapp.2014-09-12-2.log and so on.</p>
394
394
395
395
<h2>
396
396
<aid="user-content-38--sever-side-websocket" class="anchor" href="#38--sever-side-websocket" aria-hidden="true"><spanaria-hidden="true" class="octicon octicon-link"></span></a>3.8 Sever Side WebSocket</h2>
0 commit comments