The size of the response is the one that causes de delay. Tested. This is the resource (
http://informo.munimadrid.es/informo/tmadrid/pm.xml), 1.4 megabytes. And here the flow in case you'd like to test it:
[{"id":"50ef7066.cf7268","type":"mqtt-broker","broker":"localhost","port":"1883","clientid":""},{"id":"a4683606.f2d608","type":"http request","name":"Get traffic status from Madrid","method":"GET","ret":"txt","url":"
http://informo.munimadrid.es/informo/tmadrid/pm.xml","x":327,"y":144,"z":"13c06d4d.c42c8b","wires":[["33afc2c9.674a5e"]]},{"id":"33afc2c9.674a5e","type":"xml","name":"xml2json","attr":"$","chr":"_","x":325,"y":220,"z":"13c06d4d.c42c8b","wires":[["a5a65a8d.ae06d"]]},{"id":"f1965d1f.692ba8","type":"inject","name":"Every 5 minutes","topic":"","payload":"","payloadType":"none","repeat":"300","crontab":"","once":true,"x":333,"y":74,"z":"13c06d4d.c42c8b","wires":[["a4683606.f2d608"]]},{"id":"a5a65a8d.ae06d","type":"mqtt out","name":"MQTT Publisher","topic":"someTopic","qos":"0","retain":"false","broker":"50ef7066.cf7268","x":328,"y":293,"z":"13c06d4d.c42c8b","wires":[]}]