kartik0000 / c-obix-tools

Automatically exported from code.google.com/p/c-obix-tools
0 stars 0 forks source link

Server fails to process Batch command #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Input request:

POST /obix/batch/ HTTP/1.1
Host: localhost
Content-Type: text/xml
Content-Length: 415

<list is="obix:BatchIn" of="obix:uri">
 <uri is="obix:Invoke" val="/obix/watchService/make" />
 <uri is="obix:Write" val="/obix/watchService/watch1/pollWaitInterval/max" >
  <reltime href="/obix/watchService/watch1/pollWaitInterval/max" val="PT5S" />
 </uri> 
 <uri is="obix:Invoke" val="/obix/watchService/watch1/pollChanges" />
 <uri is="obix:Invoke" val="/obix/watchService/watch1/delete" />
</list>

What is the expected output? What do you see instead?

Expected: Server handles Batch request.

Observed: HTTP/1.1 500 Internal Server Error

Original issue reported on code.google.com by Litvinov...@gmail.com on 27 Jan 2010 at 3:39

GoogleCodeExporter commented 8 years ago
Batch request creates Watch object, sets waiting time to 5 seconds and then 
invokes pollChanges. As soon as 
there are no updates in monitored objects, pollChanges request should be hold 
on server for 5 seconds (or until 
some update), but Batch request should deny holding itself. Instead, such 
combination results in segmentation 
fault. 

Original comment by Litvinov...@gmail.com on 29 Jan 2010 at 2:25