Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
e1548e9b
Commit
e1548e9b
authored
Jul 09, 2019
by
Roman Savrulin
Committed by
Me No Dev
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hang on client disconnect during upload (#2914)
parent
c29ec9da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
libraries/WebServer/src/Parsing.cpp
libraries/WebServer/src/Parsing.cpp
+1
-0
No files found.
libraries/WebServer/src/Parsing.cpp
View file @
e1548e9b
...
...
@@ -303,6 +303,7 @@ void WebServer::_uploadWriteByte(uint8_t b){
}
int
WebServer
::
_uploadReadByte
(
WiFiClient
&
client
){
if
(
!
client
.
connected
())
return
-
1
;
int
res
=
client
.
read
();
if
(
res
<
0
)
{
// keep trying until you either read a valid byte or timeout
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment