Aborting a GET in progress

Jeff Johnson n3npq at mac.com
Wed Mar 17 20:00:04 EDT 2010


Hi Joe --

I'm trying to read multiple RPM headers through neon-0.29.2
without using byte ranges.

I can read the 1st *.rpm header correctly.

But that leaves a GET operation in progress that I need to
abort before starting the next GET.

Here's the failure I am seeing including the attempts to
abort the 1st GET and initiate the second:

=====================================
<-- 1st GET is aborted -->
...
Running post_send hooks
...
*** ne_end_request(req): Success
Running destroy hooks.
...
Request ends.

<--- 2nd GET is created --->

Running pre_send hooks
...
Sending request headers:
GET /files/popt/popt-1.10.1-1.i386.rpm HTTP/1.1^M
User-Agent: rpm/5.3.DEVEL neon/0.29.2^M
Connection: TE^M
TE: trailers^M
Host: rpm5.org^M
^M
Sending request-line and headers:
Request sent; retry is 1.
[status-line] < ^_<8b>^HAborted request (0): Could not parse response status line
*** ne_begin_req(ctrl->req): NE_ERROR: Generic error.
...
=====================================

The NE_ERROR failure is from ne_begin_request() and appears to include
some left over bytes from the previous transfer.

Questions:

Is it feasible to abort a GET operation in progress but
preserve the connection session for performance?

Is it sufficient to destroy a request to abort an operation
or should I proceed to attempt ne_close_connection() or
even destroy/recreate the session in order to abort a
transfer in progress?

Thanks for info.

73 de Jeff



More information about the neon mailing list