Foaming around pipe joints