Fix possible deadlock.
Use pom_log() for libjpeg messages.
Correctly process the payload in case there are multiple http request/replies in the same packet.