Cura/plugins
Ghostkeeper 7e10e74e9e
Don't send print job in chunks
Previously the print job was sent with multiple PUT requests. This was necessary since the request was made with the Python Requests library, which freezes the interface while it's running. By breaking the upload up in chunks, it would at least periodically keep updating the interface (4 times per second or so, depending on your internet speed and Ultimaker's). Later on, this was replaced by a QNetworkRequest which doesn't freeze the interface in a refactor, but it was still broken up in chunks.
Recently that was again refactored to use Uranium's HttpRequestManager, which under the covers also uses QNetworkRequest. This also doesn't freeze while uploading, which is good. However for some reason the second chunk would always give a QNetworkReply::ProtocolUnknownError, which is a bit of a catch-all error for any HTTP status codes not supported by Qt. I was not able to figure out what was really going wrong there, but it has something to do with the content-range header and making multiple requests.
Instead of fixing that, I've removed the chunking. This simplifies the code a lot and doesn't have any implications for the user, since it still doesn't freeze the interface while the network request is ongoing. It should be slightly faster to upload, and reduce load on the server too.

However the disadvantage is that the original bug is probably still there if it was a bug in the HttpRequestManager. If it was a bug in the ToolPathUploader I probably deleted the bug here.

Contributes to issue CURA-7488.
2020-06-08 17:55:07 +02:00
..
3MFReader Use extruderList rather than deprecated extruders property 2020-06-05 15:17:35 +02:00
3MFWriter Remove usage of deprecated extruders property 2020-05-29 17:42:18 +02:00
AMFReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
CuraDrive Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6 2020-04-21 11:46:12 +02:00
CuraEngineBackend Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
CuraProfileReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
CuraProfileWriter Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
FirmwareUpdateChecker Show latest version nr. available in firmware-update-checker-message. 2020-06-05 13:29:21 +02:00
FirmwareUpdater Convert doxygen to rst for Firmware update plugins 2020-05-08 15:46:02 +02:00
GCodeGzReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
GCodeGzWriter Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
GCodeProfileReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
GCodeReader Use extruderList rather than deprecated extruders property 2020-05-29 17:02:22 +02:00
GCodeWriter Remove use of deprecated extruders property 2020-05-29 17:45:41 +02:00
ImageReader Fix image reader peak height 2020-05-07 14:29:30 +02:00
LegacyProfileReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
MachineSettingsAction Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
ModelChecker Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
MonitorStage Convert doxygen to rst for POS, MonitorStage, PostProcessing 2020-05-08 16:28:07 +02:00
PerObjectSettingsTool Merge branch 'master' into feature_support_meshes_present 2020-06-04 10:27:11 +02:00
PostProcessingPlugin Fix running automated tests from source with different SIP version 2020-05-29 17:31:58 +02:00
PrepareStage Convert doxygen to rst for Prepare, Preview, RemovableOutputDevice 2020-05-08 17:37:49 +02:00
PreviewStage Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
RemovableDriveOutputDevice Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
SentryLogger Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
SimulationView Merge remote-tracking branch 'origin/master' into doxygen_to_restructuredtext_comments 2020-05-15 13:38:37 +02:00
SliceInfoPlugin Use extruderList rather than extruders property 2020-06-05 15:17:36 +02:00
SolidView Convert doxygen to rst for SentryLogger, SimulationView, SliceInfo, 2020-05-15 13:34:58 +02:00
SupportEraser Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6 2020-04-21 11:46:12 +02:00
Toolbox Remove overly spammy logging 2020-06-04 14:32:37 +02:00
TrimeshReader Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
UFPReader Update sdk version to 7.2.0 2020-04-21 11:00:06 +02:00
UFPWriter Use newer extruderList rather than deprecated extruders property 2020-06-05 15:17:36 +02:00
UltimakerMachineActions Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
UM3NetworkPrinting Don't send print job in chunks 2020-06-08 17:55:07 +02:00
USBPrinting Added 76800 baud rate 2020-06-02 00:03:12 -03:00
VersionUpgrade Merge branch '4.6' 2020-06-04 13:37:44 +02:00
X3DReader Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6 2020-04-21 11:46:12 +02:00
XmlMaterialProfile Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
XRayView Convert doxygen to rst for X3DReader, XmlMaterialProfile, XRayView 2020-05-28 16:08:51 +02:00