Skip to content

Commit

Permalink
chore(chrome): add web socket error closing
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 21, 2025
1 parent f1ea26e commit e690bd8
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spider/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider"
version = "2.30.9"
version = "2.30.10"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
7 changes: 6 additions & 1 deletion spider/src/features/chrome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ pub async fn launch_browser(
while let Some(k) = handler.next().await {
if let Err(e) = k {
match e {
CdpError::LaunchExit(_, _)
// Ws(Protocol(ResetWithoutClosingHandshake))
// Ws(AlreadyClosed)
CdpError::Ws(_)
| CdpError::LaunchExit(_, _)
| CdpError::LaunchTimeout(_)
| CdpError::LaunchIo(_, _) => {
break;
Expand Down Expand Up @@ -426,6 +429,8 @@ pub async fn launch_browser(
};
};
}
} else {
handle.abort();
}
}

Expand Down
2 changes: 1 addition & 1 deletion spider_chrome/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_chrome"
version = "2.30.9"
version = "2.30.10"
rust-version = "1.70"
authors = [
"j-mendez <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions spider_chrome/src/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::task::ready;
use futures::stream::Stream;
use futures::task::{Context, Poll};
use futures::{SinkExt, StreamExt};
use tokio::io::AsyncWriteExt;
use tokio_tungstenite::tungstenite::Message as WsMessage;
use tokio_tungstenite::MaybeTlsStream;
use tokio_tungstenite::{tungstenite::protocol::WebSocketConfig, WebSocketStream};
Expand Down
2 changes: 1 addition & 1 deletion spider_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_cli"
version = "2.30.9"
version = "2.30.10"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_transformations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_transformations"
version = "2.30.9"
version = "2.30.10"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_utils"
version = "2.30.9"
version = "2.30.10"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_worker"
version = "2.30.9"
version = "2.30.10"
authors = [
"j-mendez <[email protected]>"
]
Expand Down

0 comments on commit e690bd8

Please sign in to comment.