Skip to content

Commit

Permalink
Merge pull request #4737 from projectdiscovery/bugfix-4518-optional-read
Browse files Browse the repository at this point in the history
network layer should not have forceful read
  • Loading branch information
Mzack9999 committed Feb 7, 2024
2 parents e252797 + a0216e4 commit 7e108cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocols/network/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (request *Request) executeRequestWithPayloads(variables map[string]interfac
final, err := ConnReadNWithTimeout(conn, int64(bufferSize), DefaultReadTimeout)
if err != nil {
request.options.Output.Request(request.options.TemplatePath, address, request.Type().String(), err)
return errors.Wrap(err, "could not read from server")
gologger.Verbose().Msgf("could not read more data from %s: %s", actualAddress, err)
}
responseBuilder.Write(final)

Expand Down

0 comments on commit 7e108cd

Please sign in to comment.