proxy-uri | Helper to generate/parse Shadowsocks/HTTP URI | Proxy library
kandi X-RAY | proxy-uri Summary
kandi X-RAY | proxy-uri Summary
proxy-uri is a utility to help generate or parse Shadowsocks(R)/HTTP(S) URI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of proxy-uri
proxy-uri Key Features
proxy-uri Examples and Code Snippets
Community Discussions
Trending Discussions on proxy-uri
QUESTION
I am developing a CoAP client on the nRF9160 DK, running Zephyr RTOS. I am having trouble with longer Proxy-URI's; short URIs (268 characters and below) work fine and the coap message reaches the server as expected. However, messages with longer Proxy-URIs (269 characters and above) fail to go through for some reason. For example, with the following initialisation:
...ANSWER
Answered 2021-Jan-09 at 10:26CoAP messages are typically limited by the application's buffer in size, and practically limited to one MTU (as IP fragmentation is rarely used together with CoAP). Unlike the message's payload, an option can not be split across multiple messages using block-wise transfer. On the Zephyr side, the error went unnoticed because you discarded the coap_packet_append_option result code.
For the concrete case of this URI, you can work around the limitation using a larger message buffer (how that is done depends on how you initialized request
in the first place).
Note that transporting a JWT in the URI for authentication purposes is not how authentication is typically done in CoAP applications. If your HTTP server accepts TLS client certificates instead of CWTs, you may consider provisioning the proxy with a suitable client certificate (to be used when the CoAP client is authenticated properly, eg. using DTLS or OSCORE), and then use only the almost reasonably sized token-less path.
[edit after question clarification]
The lack of errors indicates a flaw in the Zephyr code, either Zephyr itself or the concrete network interface used (which should not silently truncate outgoing messages without letting the OS know), and would best be addressed inside the Zephyr issue tracker.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install proxy-uri
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page