Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
bird3214
Level 7

HTTP/2 roku issue

Hi,
I am implementing roku app using HTTP/2 protocol for requests. I am using roUrlTransfer and single node thread instance to perform requests. Usually it works fine, but when app is in idle state and new request kicks in roUrlTransfer returns code -16  stating that there is some framing issue (according to curl documentation). Something like this:

sub _taskFunction()
 port = createObject("roMessagePort")
 m.top.observeField("request", port)
 while (true)
   message = wait(0, port)
   if (type(message) = "roSGNodeEvent" AND message.getField() = "request")
     Http(message.getData()).setMessagePort(port).setProtocol("http2").send()
   end if
   ....
    handle response here
end while
end sub

Http creates new roUrlTransfer and sets proper attributes. Anyone experienced such issue?
0 Kudos