Skip to content

Commit

Permalink
posts/2024-09-02/01: add explanation about n=0 in post
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 3, 2024
1 parent 8ec5649 commit dfcfef4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions posts/2024-09-02/01-my-coding-experience-with-llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ happening. But still, it didn't talked at all about the gotcha of setting the
read deadline and reusing the underlying connection, needing another prompt to
give me this information.

Also, there is one issue in ChatGPT solution though: we are discarding the
values of the buffer once the context is done by returning `n = 0` instead of
the number of bytes read. In this particular case this is what I wanted, but
this is a possible issue that ChatGPT didn't talk.

For comparison,
[this](https://stackoverflow.com/questions/61637359/how-to-use-context-context-with-tcp-connection-read)
is the best that I got searching in both DuckDuckGo and Google, that is where I
Expand Down

0 comments on commit dfcfef4

Please sign in to comment.