#NGHTTP2 request handling

12 messages · Page 1 of 1 (latest)

south kettle
#

Hello I'm trying to implement basic http2 post request handling using nghttp2. I'm trying to follow their documentation as much as I can and I'm using ChatGPT to help me. But I'm getting Access Violation error once I call nghttp2_session_send function.

frozen glenBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

south kettle
#

these are ss from my code

frozen glenBOT
#
mcmlevi
Please Do Not Send Screenshots!

They're hard to read and prevent copying and pasting.

#
Why Should I Format My Code, and How Do I Do It?

Well-formatted code is much easier to read, especially for people who haven't written it themselves. Poor formatting can even be misleading, especially indentation:

while (is_waiting);    // BAD! reader may think that
  std::cout << "hi\n"; // printing is in the loop

while (is_waiting) { } // good, empty statement
std::cout << "hi\n";   // is clearly visible
Rules for Code Formatting
  1. Stay consistent! (much easier when using auto-formatters)
  2. Don't use exotic styles that surprise readers.
  3. The rest is up to personal preference.
Auto-Formatting with clang-format

For C/C++, you can use clang-format to decide on a style, and apply it automatically to your files. You can use it in the terminal, or through an editor plugin.

Most IDEs will also let you configure a style in their settings, but clang-format is universal.

See Support/Plugins
tough forge
#

wait that one is the wrong one 😅

frozen glenBOT
#
How to Format Code on Discord
Markup

```cpp
int main() {}
```

Result
int main() {}
tough forge
#

and Honestly I would highly reccomend not using chatgpt to help you, chatgpt can't code and doesn't know what it's doing

south kettle
#

I know, but I need to iterate fast in order to get the proof of concept, I've managed curl really fast on the client side, but this nghttp2 on the server side is rly pain

#

these callbacks are killing me

south kettle
#

!solved