View Issue Details

IDProjectCategoryView StatusLast Update
0007750Talerexchangepublic2023-09-23 13:09
ReporterMS Assigned ToMS Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PriorityhighSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007750: taler-exchange-wirewatch ignores the -f option
DescriptionThat causes requests to Nexus /history/incoming to lack the long_poll_ms parameter.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2023-03-07 20:20

manager   ~0019927

I've inspected the code (visually), and it seems to CLEARLY set the timeout, except for two key cases:
1) if we are in test-mode (-t), and
2) if we are going backwards in time

In both cases, using the timeout makes no sense and is correctly disabled. How exactly are you calling taler-exchange-wirewatch to conclude that '-f' is not respected?

MS

2023-03-08 13:27

reporter   ~0019934

with -t. Why is that disabled? What if users want to check that both client and server respect the timeout?

Christian Grothoff

2023-03-08 13:29

manager   ~0019935

-t is test-mode, where the service is supposed to exit when no more work is available, not "hang around". So long polling doesn't make sense in test-mode.

MS

2023-03-08 13:39

reporter   ~0019936

Also, the help message is unclear about the unit of time being expected by -f. Below is the relevant --help part:

  -f, --longpoll-timeout=DELAY
                             what is the timeout when asking the bank about
                               new transactions

After some tries, it seems that -f N translates to a long_poll_ms of N/1000.

This command:
$ taler-exchange-wirewatch -c wirewatch.conf -L DEBUG -f 100000

Causes this request:
GET /facades/test-facade/taler-wire-gateway/history/incoming?delta=1024&long_poll_ms=100

Is that intentional?

Christian Grothoff

2023-03-08 13:49

manager   ~0019937

Last edited: 2023-03-08 13:50

Yes. Note that you probably want to use

$ taler-exchange-wirewatch -c wirewatch.conf -L DEBUG -f "100 ms"
$ taler-exchange-wirewatch -c wirewatch.conf -L DEBUG -f "30 s"

etc, just like we usually do when passing time values. Without any unit, it is microseconds and hence correctly divided by 1000.

MS

2023-04-11 17:15

reporter   ~0020075

Ack. for the clarification and yes, without "-t" wirewatch sends the long_poll_ms parameter.

Issue History

Date ModifiedUsernameFieldChange
2023-03-07 17:18MSNew Issue
2023-03-07 17:18MSStatusnew => assigned
2023-03-07 17:18MSAssigned To => Christian Grothoff
2023-03-07 17:18MSPrioritynormal => high
2023-03-07 20:20Christian GrothoffNote Added: 0019927
2023-03-07 20:20Christian GrothoffAssigned ToChristian Grothoff => MS
2023-03-07 20:20Christian GrothoffStatusassigned => feedback
2023-03-08 13:27MSNote Added: 0019934
2023-03-08 13:29Christian GrothoffNote Added: 0019935
2023-03-08 13:39MSNote Added: 0019936
2023-03-08 13:49Christian GrothoffNote Added: 0019937
2023-03-08 13:50Christian GrothoffNote Edited: 0019937
2023-04-04 13:58Florian DoldTarget Version => 0.9.3
2023-04-11 17:15MSNote Added: 0020075
2023-04-11 17:16MSStatusfeedback => informing
2023-04-11 17:16MSResolutionopen => no change required
2023-09-23 13:07Christian GrothoffFixed in Version => 0.9.3
2023-09-23 13:09Christian GrothoffStatusinforming => closed