4D Blog

Home Product QUIC network layer: Automatic update and sleep mode

QUIC network layer: Automatic update and sleep mode

February 28, 2024

Product

Our development of the QUIC network layer continues, and with 4D 20 R4, we now have the sleep mode and the automatic update. Let’s take a closer look at these enhancements and see how they compare to the way they work with other network layers.

Sleep Mode

Let me start with the sleep mode.

When you put your machine to sleep, 4D enters a state called “sleep mode.” It cuts the connection to the server and instantiates it when you wake your machine up. In the meantime, 4D Server keeps your session open for a specific time (2 days by default), after which it disconnects you. Sleep mode is essential to prevent losing your work when you leave your computer for a short time, for example during the lunch break, and that’s why it is now available with the QUIC network layer.
As a side note, the postpone mechanism (and idle connection timeout) of the ServerNet layer hasn’t been reported to the QUIC network layer as it is not helpful.

Automatic update

I expect many of you to wonder how they will transition their applications to the QUIC network layer. Don’t worry; the automatic update works perfectly with the QUIC network layer. Still, its functioning is a bit tricky, and as such, I want to explain to you exactly how it happens.

QUIC is unique among 4D network layers as it is based on UDP, not TCP. As a result, the interaction between an old 4D client built with a version of 4D that didn’t know about QUIC and a 4D Server running on the QUIC network layer is technically impossible. But fortunately, we have thought about it and made sure it works.

What happens is that even when you run on the QUIC network layer, the 4D Server still accepts TCP connections from 4D clients using the ServerNet layer. These connections can be utilized for update purposes. Actually, they can only be used for update purposes. Once the old 4D client has been updated to the latest version, it will have no issue connecting to the 4D Server using the QUIC network layer.

Stay in touch

I can already tell you that 4D 20 R5 will also bring many new QUIC features. Stay tuned!

Discuss

Tags 21, Network, QUIC, v20 R4

Latest related posts

  • October 23, 2025

    Starting Qodly studio is just two clicks away

  • October 22, 2025

    Localize your Qodly Pages: A Practical Guide

  • October 21, 2025

    New Way to Control Your HTTP Responses

Nicolas Brachfogel
Nicolas Brachfogel
Product Owner & Senior Developer - Nicolas Brachfogel joined 4D in 2017 as senior developer (4D Server and networking) and as Product Owner to manage the 4D version on Apple Silicon. He is tasked with the redaction of user stories and functional specifications, as well as the verification that the new features are in line with customers' needs. With a degree from Institut Supérieur d'Informatique Appliquée Paris (INSIA), Nicolas started his career as a software developer in 2001. After many years of development in Java and C++, he specialized himself in client-server development in the video game industry. As a developer/software architect, he worked on the server architectures of many games (Dofus Arena, Drakerz, Trivial Pursuit Go !).
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy