MaMazav / webjpip.js

An end to end pure web (Javascript) solution for standard JPIP client
Apache License 2.0
6 stars 5 forks source link

kdu_server #2

Open lschmidt76 opened 8 years ago

lschmidt76 commented 8 years ago

I tried to get the jpxjpip or other demos up and running but with the latest version of kdu_show I do not succeed at all. I get the info below. Any idea where to start? I could go through the code of kdu_server but any hint would be appreciated. Thanks!

<< GET /A012_C005_0516BC_001_1099124.jp2?type=jpp-stream&stream=0&len=10240&qid=1&cnew =http HTTP/1.1 << Host: XXXXXXXX:8888 << Connection: keep-alive << User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_113) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 << Origin: http://localhost << Accept: /_ << Referer: http://localhost/jpip/wrappers/jpxjpipimage/jpxjpipimageworkers/codestreamclien tmanagerworker.js << Accept-Encoding: gzip, deflate, sdch << Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 <<

New channel request accepted locally
    Assigned channel ID: JPH_020B82F74A5DFD69

>> HTTP/1.1 200 OK
>> JPIP-cnew: cid=JPH_020B82F74A5DFD69,path=jpip,transport=http
>> JPIP-qid:1
>> Cache-Control: no-cache
>> Transfer-Encoding: chunked
>> Content-Type: image/jpp-stream
>>
>> 10c

>> 0
>>

Disconnecting client
    File = "a012_c005_0516bc_001_1099124.jp2"
    Channel transport = "http" (1)
    Disconnect time = Fri Feb 19 14:38:46 2016
    Connected for 10.050763 seconds
    Total bytes transmitted = 458
    Number of requests = 1
    Number of requests not pre-empted = 1
    Average bytes served per request not pre-empted = 458.000000
    Number of primary channel attachment events = 1
MaMazav commented 8 years ago

Sorry for the delayed answer. Without deep checking I can think about some potential causes:

  1. Kdu server is only a preview version of jpip server and has some issues of scalability and stability. Specifically I saw similar error messages when the clients performed a lot of requests. I tried handle some of those problems in my code but I guess I cannot solve all kdu's problems. Try to reduce the load if you have a control over this (too complex image, too much concurrently opened images, etc.).
  2. Did you handle the CORS issue?
  3. The chunk encoding may cause difficulties. For example I tried using one of the simple popular proxy server of node.js, and it failed because of wrong treatment of chunked encoding. Ensure all components in the system can handle chunked encoding.

Btw which kdu version did you use?

Please let me know if some of these suggestions solved the problem.