This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOMCAT 8.5以上可支援HTTP/2,而HTTP/2+ALPN為目前瀏覽器支援的主流, | |
需要openssl的支援,而舊版本openssl只支援NPN, | |
若要支援ALPN,那麼openssl版本需 >= 1.0.2, | |
若未滿足上述條件,瀏覽器會自動降級為使用HTTP/1.1協定, | |
或瀏覽器本來就不支援HTTP/2,伺服器會改使用HTTP/1.1協定。 | |
(UPDATE: TOMCAT 8.5 使用APR有不太穩定的現象,建議升級為TOMCAT 9) | |
(UPDATE: TOMCAT 9 使用APR運行了幾天後突然噴掉,查了 /tmp/hs_err_pid22617.log | |
,stack trace顯示錯誤為: | |
Stack: [0x00007f2eb16f8000,0x00007f2eb17f9000], sp=0x00007f2eb17f74a0, free space=1021k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--EXIF reader | |
--by Black Duck (H.L. Chin) 2016.10.21 @Kaohsiung, Taiwan | |
--FB: flashairtest | |
--reference: https://www.media.mit.edu/pia/Research/deepview/exif.html | |
local function readEXIF(_file) | |
local f = io.open(_file, "rb") | |
local data = {} |