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?