Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5351f46e
Commit
5351f46e
authored
9 years ago
by
Marko Mikulicic
Committed by
Sergey Lyubka
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mongoose send on esp8266 RTOS_SDK
PUBLISHED_FROM=1e97853ebc1c39b01754cf76d875453842e9b36d
parent
0cd3335b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
mongoose.c
mongoose.c
+10
-1
No files found.
mongoose.c
View file @
5351f46e
...
...
@@ -2074,7 +2074,7 @@ MG_INTERNAL struct mg_connection *mg_create_connection(
/* Associate a socket to a connection and and add to the manager. */
MG_INTERNAL
void
mg_set_sock
(
struct
mg_connection
*
nc
,
sock_t
sock
)
{
#if !defined(MG_CC3200)
&& !defined(MG_ESP8266)
#if !defined(MG_CC3200)
/* Can't get non-blocking connect to work.
* TODO(rojer): Figure out why it fails where blocking succeeds.
*/
...
...
@@ -2530,6 +2530,11 @@ static void mg_write_to_socket(struct mg_connection *conn) {
struct
mbuf
*
io
=
&
conn
->
send_mbuf
;
int
n
=
0
;
#ifdef RTOS_SDK
/* In ESP8266 RTOS_SDK we don't know if the socket is ready */
if
(
io
->
len
==
0
)
return
;
#endif
assert
(
io
->
len
>
0
);
#ifdef MG_ENABLE_SSL
...
...
@@ -2889,6 +2894,10 @@ time_t mg_mgr_poll(struct mg_mgr *mgr, int milli) {
(
nc
->
send_mbuf
.
len
>
0
||
nc
->
flags
&
MG_F_CONNECTING
))
{
fd_flags
|=
_MG_F_FD_CAN_WRITE
;
}
#endif
#ifdef RTOS_SDK
/* In ESP8266 RTOS_SDK we don't get write events */
fd_flags
|=
_MG_F_FD_CAN_WRITE
;
#endif
tmp
=
nc
->
next
;
mg_mgr_handle_connection
(
nc
,
fd_flags
,
now
);
...
...
This diff is collapsed.
Click to expand it.
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