Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bird3214
Binge Watcher

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.