diff --git a/.gitignore b/.gitignore index 8d21c950..65d64ecb 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ v3/ # Output of the go coverage tool, specifically when used with LiteIDE *.out +.scannerwork/ diff --git a/net/blockwise/blockwise.go b/net/blockwise/blockwise.go index e199d6cc..c93d3b61 100644 --- a/net/blockwise/blockwise.go +++ b/net/blockwise/blockwise.go @@ -540,11 +540,6 @@ func (b *BlockWise[C]) startSendingMessage(w *responsewriter.ResponseWriter[C], return fmt.Errorf("handleSendingMessage: cannot create sending message: %w", err) } originalSendingMessage := w.Swap(sendingMessage) - if isObserveResponse(w.Message()) { - b.cc.ReleaseMessage(originalSendingMessage) - // https://tools.ietf.org/html/rfc7959#section-2.6 - we don't need store it because client will be get values via GET. - return nil - } expire, ok := sendingMessage.Context().Deadline() if !ok { expire = time.Now().Add(b.expiration)