subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <>
Subject Re: [serf-dev] Re: [PATCH] Serf crash on spurious data between responses
Date Mon, 12 Jan 2015 11:22:34 GMT
Lieven Govaerts <> writes:

> You're trying to capture the situation where serf has:
> - finished writing a request ( req_bkt == NULL && writing_started )
> - has no more requests in the pending queue
> - and receives actual bytes of data.
> Right?
> Looks like your patch is a correct way to fix the problem. Some
> comments would be welcome, and if you have the time a test.

I'm not familiar with serf's testsuite.  The scenario:

  - client sends first request
  - server sends response
  - server sends extra data, say '\n'
  - client handles first request
  - client creates a second request
  - client calls serf to send second, pipelined, request
  - serf reads extra data
  - serf attempts to pass the extra data to client's callbacks

At this point serf has not called setup_request so although the client
has created a request is not ready to receive data.  How do I go about
writing such a test?

Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

View raw message