[Qt-interest] QNetworkAccessManager and SIGPIPE

Thiago Macieira thiago at kde.org
Mon Feb 22 14:27:21 CET 2010


Em Segunda-feira 22 Fevereiro 2010, às 14:04:09, Jason Wood escreveu:
> Hi,
> 
> I'm working on an application which uses QNetworkAccessManager to upload
> data to a web server, I'm using the latest Qt release (4.6.2) and I'm
> seeing an issue which seems to stop my uploads permanently.
> 
> The scenario is:
> 
> Main thread starts and spawns a new thread to handle uploads.
> Upload thread owns 3 QNetworkAccessManagers to upload simultaneously.

Unnecessary. One thread can do 3 simultaneous uploads, even to the same 
server.

> All 3 uploads begin as normal.
> Main thread receives a SIGPIPE signal.
> One of the 3 uploads now stops moving and never hits the finished() signal
> with or without an error.
> 
> This only happens on OSX as the Windows build functions normally. Is there
> anything that would cause this? Perhaps I've got a build setting wrong
> somewhere? Is there anything more I can do to debug?

Why is your code receiving SIGPIPE?

Is this something you caused?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100222/288eaf9d/attachment.bin 


More information about the Qt-interest-old mailing list