Opened 7 years ago

Closed 7 years ago

#576 closed defect (fixed)

eepget should not return 0 when download fails

Reported by: killyourtv Owned by: killyourtv
Priority: minor Milestone: 0.8.13
Component: api/utils Version: 0.8.11
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

Even if a transfer fails, eepget seems to return 0

$ eepget http://notarealsite.i2p/broken.txt

** Wed Jan 04 13:34:02 UTC 2012
** Attempt 0 of http://notarealsite.i2p/broken.txt failed
** Transfered 0 with unknown remaining
** Attempt failed
== Wed Jan 04 13:34:02 UTC 2012
== Transfer of http://notarealsite.i2p/broken.txt failed after 0 attempts
== Transfer size: 0 with unknown remaining
== Transfer time: 78ms
== Transfer rate: 000,00KBps

~ 
$ echo $?
0
$ http_proxy=localhost:4444 wget -q http://notarealsite.i2p/broken.txt
~ 
$ echo $?
8

Subtickets

Change History (3)

comment:1 Changed 7 years ago by zzz

Owner: set to killyourtv
Status: newassigned

you should be able to tackle this, if not throw it back to me

hint: if (!get.fetch(…..))

exit(1)

comment:2 Changed 7 years ago by killyourtv

Status: assignedaccepted

Thanks for the hint. I fixed EepGet? and EepHead? but I haven't checked them in yet.

comment:3 Changed 7 years ago by killyourtv

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.