-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
externalize timeouts? #53
Comments
Sure, that can be done, however are you sure that's really what you want? Right now the timeout is on 2 seconds to connect (tcp), and 60 seconds for receiving the data. Which timeout are you hitting? (the connect or response?) |
Yes - it does seem a bit extreme. But we have a massive instance of MISP behind the curtain, and regularly see multi-minute waits. We've gotten used to it - and this enhancement would help us work around it. It's the response timeout that we are getting hit with, the connect seems ok (at least in our circumstance). |
Hi @cvandeplas -- I work with @netmg. I'm new to Maltego -- your plugin is very cool! And thanks for being so responsive here! Being that these recent postings peeked my curiosity re' the timeout, I wrote a simple script that calls
Being new with your code, what's not clear, is whether options 2 and 3 above will yield the data content you need further downstream in the Maltego client. I'm eager to hear your thoughts. Thanks again. |
I've also found that setting a "limit" value, even if very high (i.e., 1,000,000) can significantly improve pymisp response times (at least in JupyterLab):
|
There is indeed optimisation possible, especially with events that are so large.
The reason I did so was that without the check there would be a direct link between the attribute and the event, breaking a bit the visual look. However I did not anticipate you would be using such large datasets. Changing the code with So technically the code can be changed to accommodate this situation, but honestly, I think we need to look at it with a big step back to not break the other functionality & usability. Maybe some things can be improved by requesting small changes on MISP side too. (like returning attribute & object counts) Please feel free to play around with the code, I'm happy to review pull-requests and merge them in the project code. |
@cvandeplas Thanks for the feedback. Don't have cycles to attack this now, but it's in the queue. |
Hi Christophe -
I'm just scraping the surface on your code, but after experiencing some timeouts with our MISP server I experimented with the same line that was changed for #52 .
88 self.misp = PyMISP(url=misp_url, key=misp_key, ssl=misp_verify, debug=misp_debug, tool='misp_maltego', timeout=(2, 60))
I found I could modify the 2nd parameter and avoid the timeouts.
Would it be possible to externalize both of these timeout values, making them accessible in MISP_maltego.conf ?
The text was updated successfully, but these errors were encountered: