[ANN] Nginx-Clojure v0.2.5 released!

41 views
Skip to first unread message

Yuexiang Zhang

unread,
Sep 7, 2014, 8:45:59 AM9/7/14
to clo...@googlegroups.com, nginx-...@googlegroups.com

0.2.5 (2014-09-07)

  1. New Feature: Reference variables in jvm_options & different jvm debug ports for jvm processes (issue #42)
  2. New Feature: Server Sent Events(SSE) & Long polling (issue #41, issue #36)
  3. New Feature: Supports 64-bit JDK on 64-bit Windows (issue #40)
  4. New Feature: Coroutine based socket supports JDK8 (issue #39)
  5. New Feature: More easier to archive Sub/Pub services with Broadcast Events to all Nginx workers (issue #39)
  6. New Feature: Asynchronous Channel a wrapper of asynchronous socket to make the usage easier (issue #37)
  7. Enhancement: Fix--On Windows a little many write events happen and these events seem useless (issue #35)

So far Nginx-Clojure have supported:

  • Linux x86 32-bit (tested with CentOS 5.10 i386 )
  • Linux x64 (tested with CentOS 5.10 x64, Ubuntu  13.10 x64, Alpine Linux 3.03 x64)
  • Windowns x86 32-bit (tested with Windows XP 32-bit)
  • Windows X64 (tested with Windows XP 64-bit)
  • MacOSX  (tested with MacOSX 10.7 X64)



扬清风

unread,
Sep 15, 2014, 10:14:09 PM9/15/14
to nginx-...@googlegroups.com, clo...@googlegroups.com
Hi xfeep,

How do the nginx_clojure do with special char(even bytes not printable) in http message? For example,

Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Referer: http://www.cyclingnews.com/
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (Wind    ows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate

For "User-Agent" item, I put a tab in the "Wind    ows". In this case, original Nginx would escapse to "Windo\x09ws NT" in accesss log. But when I fetch this header from Nginx_clojure java handler, the value come to be "Wind\tows NT". Is there any configuration in Nginx_clojure for this if I expect to get escapse value "\x09" for "tab" instead of "\t"?

Thank you very much !!!
Robert.Yang

Yuexiang Zhang

unread,
Sep 15, 2014, 11:20:34 PM9/15/14
to 扬清风, nginx-...@googlegroups.com, clo...@googlegroups.com
Hi Yang,

'\0x09' is the same with '\t' , they get the same byte value 9.  '\0x09' and '\t' are just different human readable format display.

So for java "Wind ows NT".equals("Wind\tows NT") . 

By the way nginx-clojure won't do any converting about this case it just keep the original value.


Here 's my test about print headers to client :

$ curl -H "User-Agent:Windows        NT" http://localhost:8080/prheaders

the server reply : 

{host localhost:8080, accept */*, user-agent Windows NT}



Xfeep

--
You received this message because you are subscribed to the Google Groups "Nginx-Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginx-clojur...@googlegroups.com.
To post to this group, send email to nginx-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nginx-clojure/dfe85140-c92b-429c-a060-29bcff425215%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages