mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-01 01:12:02 +00:00
add missed event to update the connection info
This commit is contained in:
parent
4d1fa804ba
commit
62fbeca95d
@ -98,6 +98,16 @@ impl Nex {
|
|||||||
let p = self.page.clone();
|
let p = self.page.clone();
|
||||||
move |result| match result {
|
move |result| match result {
|
||||||
Ok(c) => {
|
Ok(c) => {
|
||||||
|
{
|
||||||
|
use gtk::prelude::SocketConnectionExt;
|
||||||
|
let mut i = p.navigation.request.info.borrow_mut();
|
||||||
|
i.set_socket(Some((
|
||||||
|
c.local_address().unwrap(),
|
||||||
|
c.remote_address().unwrap(),
|
||||||
|
)));
|
||||||
|
// * unwrap fails only on `connection.socket_connection.is_closed()`
|
||||||
|
// panic as unexpected.
|
||||||
|
}
|
||||||
c.output_stream().write_all_async(
|
c.output_stream().write_all_async(
|
||||||
format!("{}\r\n", uri.path()),
|
format!("{}\r\n", uri.path()),
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user